Skip to content

refactor(devnet): move apis to its own modules

9ed88f7
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

refactor(devnet): move apis to its own modules #492

refactor(devnet): move apis to its own modules
9ed88f7
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Mar 5, 2025 in 4s

clippy

299 warnings

Details

Results

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

Versions

  • rustc 1.85.0 (4d91de4e4 2025-02-17)
  • cargo 1.85.0 (d73d2caf9 2024-12-31)
  • clippy 0.1.85 (4d91de4e48 2025-02-17)

Annotations

Check warning on line 99 in pop-api/integration-tests/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for the crate

warning: missing documentation for the crate
  --> pop-api/integration-tests/src/lib.rs:1:1
   |
1  | / #![cfg(test)]
2  | |
3  | | use frame_support::{
4  | |     assert_ok,
...  |
98 | |     result.account_id
99 | | }
   | |_^
   |
   = note: requested on the command line with `-W missing-docs`

Check warning on line 44 in node/src/cli.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

large size difference between variants

warning: large size difference between variants
  --> node/src/cli.rs:5:1
   |
5  | / pub enum Subcommand {
6  | |     /// Build a chain specification.
7  | |     BuildSpec(sc_cli::BuildSpecCmd),
...  |
19 | |     ImportBlocks(sc_cli::ImportBlocksCmd),
   | |     ------------------------------------- the second-largest variant contains at least 240 bytes
...  |
39 | |     Benchmark(frame_benchmarking_cli::BenchmarkCmd),
   | |     ----------------------------------------------- the largest variant contains at least 592 bytes
...  |
43 | |     Key(sc_cli::KeySubcommand),
44 | | }
   | |_^ the entire enum is at least 592 bytes
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
   = note: `#[warn(clippy::large_enum_variant)]` on by default
help: consider boxing the large fields to reduce the total size of the enum
   |
39 |     Benchmark(Box<frame_benchmarking_cli::BenchmarkCmd>),
   |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Check warning on line 172 in runtime/testnet/src/config/xcm.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/testnet/src/config/xcm.rs:172:1
    |
172 | pub struct XcmConfig;
    | ^^^^^^^^^^^^^^^^^^^^

Check warning on line 135 in runtime/testnet/src/config/xcm.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a type alias

warning: missing documentation for a type alias
   --> runtime/testnet/src/config/xcm.rs:135:1
    |
135 | pub type Barrier = TrailingSetTopicAsId<(
    | ^^^^^^^^^^^^^^^^

Check warning on line 276 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/testnet/src/config/xcm.rs:128:1
    |
128 | / parameter_types! {
129 | |     // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
130 | |     pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
131 | |     pub const MaxInstructions: u32 = 100;
132 | |     pub const MaxAssetsIntoHolding: u32 = 64;
133 | | }
    | |_^
    |
    = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 276 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/testnet/src/config/xcm.rs:128:1
    |
128 | / parameter_types! {
129 | |     // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
130 | |     pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
131 | |     pub const MaxInstructions: u32 = 100;
132 | |     pub const MaxAssetsIntoHolding: u32 = 64;
133 | | }
    | |_^
    |
    = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 288 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/testnet/src/config/xcm.rs:128:1
    |
128 | / parameter_types! {
129 | |     // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
130 | |     pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
131 | |     pub const MaxInstructions: u32 = 100;
132 | |     pub const MaxAssetsIntoHolding: u32 = 64;
133 | | }
    | |_^
    |
    = note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 276 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/xcm.rs:44:1
   |
44 | / parameter_types! {
45 | |     pub const RelayLocation: Location = Location::parent();
46 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
55 | |     pub const BaseDeliveryFee: u128 = (UNIT / 100).saturating_mul(3);
56 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 288 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/xcm.rs:44:1
   |
44 | / parameter_types! {
45 | |     pub const RelayLocation: Location = Location::parent();
46 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
55 | |     pub const BaseDeliveryFee: u128 = (UNIT / 100).saturating_mul(3);
56 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 288 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/xcm.rs:44:1
   |
44 | / parameter_types! {
45 | |     pub const RelayLocation: Location = Location::parent();
46 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
55 | |     pub const BaseDeliveryFee: u128 = (UNIT / 100).saturating_mul(3);
56 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 288 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/xcm.rs:44:1
   |
44 | / parameter_types! {
45 | |     pub const RelayLocation: Location = Location::parent();
46 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
55 | |     pub const BaseDeliveryFee: u128 = (UNIT / 100).saturating_mul(3);
56 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 288 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/xcm.rs:44:1
   |
44 | / parameter_types! {
45 | |     pub const RelayLocation: Location = Location::parent();
46 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
55 | |     pub const BaseDeliveryFee: u128 = (UNIT / 100).saturating_mul(3);
56 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 276 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/xcm.rs:44:1
   |
44 | / parameter_types! {
45 | |     pub const RelayLocation: Location = Location::parent();
46 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
55 | |     pub const BaseDeliveryFee: u128 = (UNIT / 100).saturating_mul(3);
56 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 288 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/xcm.rs:44:1
   |
44 | / parameter_types! {
45 | |     pub const RelayLocation: Location = Location::parent();
46 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
55 | |     pub const BaseDeliveryFee: u128 = (UNIT / 100).saturating_mul(3);
56 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 276 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/xcm.rs:44:1
   |
44 | / parameter_types! {
45 | |     pub const RelayLocation: Location = Location::parent();
46 | |     pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
...  |
55 | |     pub const BaseDeliveryFee: u128 = (UNIT / 100).saturating_mul(3);
56 | | }
   | |_^
   |
   = note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 134 in runtime/testnet/src/config/system.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a type alias

warning: missing documentation for a type alias
   --> runtime/testnet/src/config/system.rs:134:1
    |
134 | pub type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook<
    | ^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 276 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/testnet/src/config/system.rs:127:1
    |
127 | / parameter_types! {
128 | |     pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
129 | |     pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
130 | |     pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
131 | | }
    | |_^
    |
    = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 276 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/testnet/src/config/system.rs:127:1
    |
127 | / parameter_types! {
128 | |     pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
129 | |     pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
130 | |     pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
131 | | }
    | |_^
    |
    = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 276 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> runtime/testnet/src/config/system.rs:127:1
    |
127 | / parameter_types! {
128 | |     pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
129 | |     pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
130 | |     pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
131 | | }
    | |_^
    |
    = note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 276 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/system.rs:21:1
   |
21 | / parameter_types! {
22 | |     pub const Version: RuntimeVersion = VERSION;
...  |
48 | |     pub const SS58Prefix: u16 = 0;
49 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 288 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/system.rs:21:1
   |
21 | / parameter_types! {
22 | |     pub const Version: RuntimeVersion = VERSION;
...  |
48 | |     pub const SS58Prefix: u16 = 0;
49 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 288 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/system.rs:21:1
   |
21 | / parameter_types! {
22 | |     pub const Version: RuntimeVersion = VERSION;
...  |
48 | |     pub const SS58Prefix: u16 = 0;
49 | | }
   | |_^
   |
   = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 276 in /home/runner/.cargo/git/checkouts/polkadot-sdk-dee0edd6eefa0594/9de8837/substrate/frame/support/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/system.rs:21:1
   |
21 | / parameter_types! {
22 | |     pub const Version: RuntimeVersion = VERSION;
...  |
48 | |     pub const SS58Prefix: u16 = 0;
49 | | }
   | |_^
   |
   = note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 47 in runtime/testnet/src/config/ismp.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/ismp.rs:47:1
   |
47 | pub struct Router;
   | ^^^^^^^^^^^^^^^^^

Check warning on line 39 in runtime/testnet/src/config/ismp.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> runtime/testnet/src/config/ismp.rs:39:1
   |
39 | pub struct HostStateMachine;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^