Skip to content

feat(xcm): reserver transfer + xcm emulator #53

feat(xcm): reserver transfer + xcm emulator

feat(xcm): reserver transfer + xcm emulator #53

GitHub Actions / clippy failed Mar 8, 2024 in 1s

clippy

1 error, 1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 1
Note 0
Help 0

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check failure on line 62 in /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/2a91d5a/substrate/frame/conviction-voting/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

not all trait items implemented, missing: `unanimity`, `rejection`, `from_requirements`, `setup`

error[E0046]: not all trait items implemented, missing: `unanimity`, `rejection`, `from_requirements`, `setup`
  --> /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/2a91d5a/substrate/frame/conviction-voting/src/types.rs:58:1
   |
58 | / impl<
59 | |         Votes: Clone + Default + PartialEq + Eq + Debug + Copy + AtLeast32BitUnsigned + TypeInfo + Codec,
60 | |         Total: Get<Votes>,
61 | |         Class,
62 | |     > VoteTally<Votes, Class> for Tally<Votes, Total>
   | |_____________________________________________________^ missing `unanimity`, `rejection`, `from_requirements`, `setup` in implementation
   |
   = help: implement the missing item: `fn unanimity(_: Class) -> Self { todo!() }`
   = help: implement the missing item: `fn rejection(_: Class) -> Self { todo!() }`
   = help: implement the missing item: `fn from_requirements(_: sp_runtime::Perbill, _: sp_runtime::Perbill, _: Class) -> Self { todo!() }`
   = help: implement the missing item: `fn setup(_: Class, _: sp_runtime::Perbill) { todo!() }`

Check warning on line 191 in runtime/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this is a decimal constant

warning: this is a decimal constant
   --> runtime/src/lib.rs:191:16
    |
191 |     spec_version: 00_01_00,
    |                   ^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
    = note: `#[warn(clippy::zero_prefixed_literal)]` on by default
help: if you mean to use a decimal constant, remove the `0` to avoid confusion
    |
191 |     spec_version: 1_00,
    |                   ~~~~
help: if you mean to use an octal constant, use `0o`
    |
191 |     spec_version: 0o1_00,
    |                   ~~~~~~