feat(sub0): nonfungibles pop-api + pallet implementation #1676
Triggered via pull request
October 31, 2024 14:13
chungquantin
synchronize
#353
Status
Success
Total duration
9s
Artifacts
–
lint-pr.yml
on: pull_request_target
Validate PR title for conventional commit compliance
2s
Annotations
1000 warnings
large size difference between variants:
node/src/cli.rs#L5
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 544 bytes
... |
43 | | Key(sc_cli::KeySubcommand),
44 | | }
| |_^ the entire enum is at least 544 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>),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
missing documentation for a struct:
runtime/devnet/src/config/xcm.rs#L211
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:211:1
|
211 | pub struct ResponseHandler<A, B>(PhantomData<(A, B)>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
runtime/devnet/src/config/xcm.rs#L128
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:128:1
|
128 | pub struct XcmConfig;
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a type alias:
runtime/devnet/src/config/xcm.rs#L126
warning: missing documentation for a type alias
--> runtime/devnet/src/config/xcm.rs:126:1
|
126 | pub type TrustedReserves = (NativeAsset, NativeAssetFrom<AssetHub>);
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a type alias:
runtime/devnet/src/config/xcm.rs#L101
warning: missing documentation for a type alias
--> runtime/devnet/src/config/xcm.rs:101:1
|
101 | pub type Barrier = TrailingSetTopicAsId<(
| ^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
runtime/devnet/src/config/xcm.rs#L94
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:94:1
|
94 | pub struct ParentOrParentsExecutivePlurality;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:87:1
|
87 | / parameter_types! {
88 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
89 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
90 | | pub const MaxInstructions: u32 = 100;
91 | | pub const MaxAssetsIntoHolding: u32 = 64;
92 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:87:1
|
87 | / parameter_types! {
88 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
89 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
90 | | pub const MaxInstructions: u32 = 100;
91 | | pub const MaxAssetsIntoHolding: u32 = 64;
92 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:87:1
|
87 | / parameter_types! {
88 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
89 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
90 | | pub const MaxInstructions: u32 = 100;
91 | | pub const MaxAssetsIntoHolding: u32 = 64;
92 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:28:1
|
28 | / parameter_types! {
29 | | pub const RelayLocation: Location = Location::parent();
30 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
31 | | // Note: Paseo currently uses Polkadot https://github.com/paseo-network/runtimes/blob/abc4ae9c5ae8f0166aab7ef2b427b3c2c6d5ce5c/relay/...
... |
36 | | pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:28:1
|
28 | / parameter_types! {
29 | | pub const RelayLocation: Location = Location::parent();
30 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
31 | | // Note: Paseo currently uses Polkadot https://github.com/paseo-network/runtimes/blob/abc4ae9c5ae8f0166aab7ef2b427b3c2c6d5ce5c/relay/...
... |
36 | | pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:28:1
|
28 | / parameter_types! {
29 | | pub const RelayLocation: Location = Location::parent();
30 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
31 | | // Note: Paseo currently uses Polkadot https://github.com/paseo-network/runtimes/blob/abc4ae9c5ae8f0166aab7ef2b427b3c2c6d5ce5c/relay/...
... |
36 | | pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:28:1
|
28 | / parameter_types! {
29 | | pub const RelayLocation: Location = Location::parent();
30 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
31 | | // Note: Paseo currently uses Polkadot https://github.com/paseo-network/runtimes/blob/abc4ae9c5ae8f0166aab7ef2b427b3c2c6d5ce5c/relay/...
... |
36 | | pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:28:1
|
28 | / parameter_types! {
29 | | pub const RelayLocation: Location = Location::parent();
30 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
31 | | // Note: Paseo currently uses Polkadot https://github.com/paseo-network/runtimes/blob/abc4ae9c5ae8f0166aab7ef2b427b3c2c6d5ce5c/relay/...
... |
36 | | pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
37 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/config/ismp.rs#L47
warning: missing documentation for a struct
--> runtime/devnet/src/config/ismp.rs:47:1
|
47 | pub struct Router;
| ^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
runtime/devnet/src/config/ismp.rs#L39
warning: missing documentation for a struct
--> runtime/devnet/src/config/ismp.rs:39:1
|
39 | pub struct HostStateMachine;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
runtime/devnet/src/config/ismp.rs#L32
warning: missing documentation for a struct
--> runtime/devnet/src/config/ismp.rs:32:1
|
32 | pub struct Coprocessor;
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a type alias:
runtime/devnet/src/config/assets.rs#L109
warning: missing documentation for a type alias
--> runtime/devnet/src/config/assets.rs:109:1
|
109 | pub type TrustBackedAssetsCall = pallet_assets::Call<Runtime, TrustBackedAssetsInstance>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:82:1
|
82 | / parameter_types! {
83 | | pub const NftFractionalizationPalletId: PalletId = PalletId(*b"fraction");
84 | | pub NewAssetSymbol: BoundedVec<u8, AssetsStringLimit> = (*b"FRAC").to_vec().try_into().unwrap();
85 | | pub NewAssetName: BoundedVec<u8, AssetsStringLimit> = (*b"Frac").to_vec().try_into().unwrap();
86 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:82:1
|
82 | / parameter_types! {
83 | | pub const NftFractionalizationPalletId: PalletId = PalletId(*b"fraction");
84 | | pub NewAssetSymbol: BoundedVec<u8, AssetsStringLimit> = (*b"FRAC").to_vec().try_into().unwrap();
85 | | pub NewAssetName: BoundedVec<u8, AssetsStringLimit> = (*b"Frac").to_vec().try_into().unwrap();
86 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:82:1
|
82 | / parameter_types! {
83 | | pub const NftFractionalizationPalletId: PalletId = PalletId(*b"fraction");
84 | | pub NewAssetSymbol: BoundedVec<u8, AssetsStringLimit> = (*b"FRAC").to_vec().try_into().unwrap();
85 | | pub NewAssetName: BoundedVec<u8, AssetsStringLimit> = (*b"Frac").to_vec().try_into().unwrap();
86 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/config/assets.rs#L42
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:42:1
|
42 | pub struct KeyLimit<const N: u32>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:19:1
|
19 | / parameter_types! {
20 | | pub const AssetDeposit: Balance = 10 * UNIT;
21 | | pub const AssetAccountDeposit: Balance = deposit(1, 16);
22 | | pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
... |
27 | | pub const MetadataDepositPerByte: Balance = deposit(0, 1);
28 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:19:1
|
19 | / parameter_types! {
20 | | pub const AssetDeposit: Balance = 10 * UNIT;
21 | | pub const AssetAccountDeposit: Balance = deposit(1, 16);
22 | | pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
... |
27 | | pub const MetadataDepositPerByte: Balance = deposit(0, 1);
28 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:19:1
|
19 | / parameter_types! {
20 | | pub const AssetDeposit: Balance = 10 * UNIT;
21 | | pub const AssetAccountDeposit: Balance = deposit(1, 16);
22 | | pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
... |
27 | | pub const MetadataDepositPerByte: Balance = deposit(0, 1);
28 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:19:1
|
19 | / parameter_types! {
20 | | pub const AssetDeposit: Balance = 10 * UNIT;
21 | | pub const AssetAccountDeposit: Balance = deposit(1, 16);
22 | | pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
... |
27 | | pub const MetadataDepositPerByte: Balance = deposit(0, 1);
28 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:19:1
|
19 | / parameter_types! {
20 | | pub const AssetDeposit: Balance = 10 * UNIT;
21 | | pub const AssetAccountDeposit: Balance = deposit(1, 16);
22 | | pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
... |
27 | | pub const MetadataDepositPerByte: Balance = deposit(0, 1);
28 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a module:
runtime/devnet/src/config/mod.rs#L7
warning: missing documentation for a module
--> runtime/devnet/src/config/mod.rs:7:1
|
7 | pub mod xcm;
| ^^^^^^^^^^^
|
missing documentation for a module:
runtime/devnet/src/config/mod.rs#L4
warning: missing documentation for a module
--> runtime/devnet/src/config/mod.rs:4:1
|
4 | pub mod ismp;
| ^^^^^^^^^^^^
|
missing documentation for a module:
runtime/devnet/src/config/mod.rs#L3
warning: missing documentation for a module
--> runtime/devnet/src/config/mod.rs:3:1
|
3 | pub mod assets;
| ^^^^^^^^^^^^^^
|
missing documentation for an associated function:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for an associated function
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a type alias:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for a type alias
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for a struct field
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a variant:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for a variant
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for an enum:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for an enum
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:572:1
|
572 | / parameter_types! {
573 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
574 | | pub const DepositBase: Balance = deposit(1, 88);
575 | | // Additional storage item size of 32 bytes.
576 | | pub const DepositFactor: Balance = deposit(0, 32);
577 | | pub const MaxSignatories: u32 = 100;
578 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:572:1
|
572 | / parameter_types! {
573 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
574 | | pub const DepositBase: Balance = deposit(1, 88);
575 | | // Additional storage item size of 32 bytes.
576 | | pub const DepositFactor: Balance = deposit(0, 32);
577 | | pub const MaxSignatories: u32 = 100;
578 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:572:1
|
572 | / parameter_types! {
573 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
574 | | pub const DepositBase: Balance = deposit(1, 88);
575 | | // Additional storage item size of 32 bytes.
576 | | pub const DepositFactor: Balance = deposit(0, 32);
577 | | pub const MaxSignatories: u32 = 100;
578 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:553:1
|
553 | / parameter_types! {
554 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
555 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
556 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
557 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:553:1
|
553 | / parameter_types! {
554 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
555 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
556 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
557 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:553:1
|
553 | / parameter_types! {
554 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
555 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
556 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
557 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:532:1
|
532 | / parameter_types! {
533 | | pub MaximumSchedulerWeight: Weight = Perbill::from_percent(60) *
534 | | RuntimeBlockWeights::get().max_block;
535 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:503:1
|
503 | / parameter_types! {
504 | | pub const PotId: PalletId = PalletId(*b"PotStake");
505 | | pub const SessionLength: BlockNumber = 6 * HOURS;
506 | | // StakingAdmin pluralistic body.
507 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
508 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:503:1
|
503 | / parameter_types! {
504 | | pub const PotId: PalletId = PalletId(*b"PotStake");
505 | | pub const SessionLength: BlockNumber = 6 * HOURS;
506 | | // StakingAdmin pluralistic body.
507 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
508 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:503:1
|
503 | / parameter_types! {
504 | | pub const PotId: PalletId = PalletId(*b"PotStake");
505 | | pub const SessionLength: BlockNumber = 6 * HOURS;
506 | | // StakingAdmin pluralistic body.
507 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
508 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:476:1
|
476 | / parameter_types! {
477 | | pub const Period: u32 = 6 * HOURS;
478 | | pub const Offset: u32 = 0;
479 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:476:1
|
476 | / parameter_types! {
477 | | pub const Period: u32 = 6 * HOURS;
478 | | pub const Offset: u32 = 0;
479 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:430:1
|
430 | / parameter_types! {
431 | | pub MessageQueueServiceWeight: Weight = Perbill::from_percent(35) * RuntimeBlockWeights::get().max_block;
432 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:401:1
|
401 | / parameter_types! {
402 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
403 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
404 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
405 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:401:1
|
401 | / parameter_types! {
402 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
403 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
404 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
405 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:401:1
|
401 | / parameter_types! {
402 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
403 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
404 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
405 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/lib.rs#L363
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:363:1
|
363 | pub struct DealWithFees;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
runtime/devnet/src/lib.rs#L342
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:342:1
|
342 | pub struct ToIncentivesPot;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:320:1
|
320 | / parameter_types! {
321 | | pub const ExistentialDeposit: Balance = EXISTENTIAL_DEPOSIT;
322 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:308:1
|
308 | / parameter_types! {
309 | | pub const IncentivesId: PalletId = PalletId(*b"BuildInc");
310 | | pub const EraDuration: BlockNumber = 10 * MINUTES; // 10 minute for testing, 24 * HOURS for production (1 ERA in Polkadot)
311 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:308:1
|
308 | / parameter_types! {
309 | | pub const IncentivesId: PalletId = PalletId(*b"BuildInc");
310 | | pub const EraDuration: BlockNumber = 10 * MINUTES; // 10 minute for testing, 24 * HOURS for production (1 ERA in Polkadot)
311 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:214:1
|
214 | / parameter_types! {
215 | | pub const Version: RuntimeVersion = VERSION;
216 | |
217 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
241 | | pub const SS58Prefix: u16 = 42;
242 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:214:1
|
214 | / parameter_types! {
215 | | pub const Version: RuntimeVersion = VERSION;
216 | |
217 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
241 | | pub const SS58Prefix: u16 = 42;
242 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:214:1
|
214 | / parameter_types! {
215 | | pub const Version: RuntimeVersion = VERSION;
216 | |
217 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
241 | | pub const SS58Prefix: u16 = 42;
242 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:214:1
|
214 | / parameter_types! {
215 | | pub const Version: RuntimeVersion = VERSION;
216 | |
217 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
241 | | pub const SS58Prefix: u16 = 42;
242 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
runtime/devnet/src/lib.rs#L186
warning: missing documentation for a constant
--> runtime/devnet/src/lib.rs:186:1
|
186 | pub const VERSION: RuntimeVersion = RuntimeVersion {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2028
warning: missing documentation for a struct field
--> runtime/devnet/src/lib.rs:179:1
|
179 | / impl_opaque_keys! {
180 | | pub struct SessionKeys {
181 | | pub aura: Aura,
182 | | }
183 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2025
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:179:1
|
179 | / impl_opaque_keys! {
180 | | pub struct SessionKeys {
181 | | pub aura: Aura,
182 | | }
183 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a module:
runtime/devnet/src/lib.rs#L10
warning: missing documentation for a module
--> runtime/devnet/src/lib.rs:10:1
|
10 | pub mod config;
| ^^^^^^^^^^^^^^
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-devnet-a3fc6b4f92e327af/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-devnet-a3fc6b4f92e327af/out/wasm_binary.rs:1:45
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-devnet-a3fc6b4f92e327af/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-devnet-a3fc6b4f92e327af/out/wasm_binary.rs:1:1
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
this let-binding has unit value:
runtime/devnet/src/lib.rs#L349
warning: this let-binding has unit value
--> runtime/devnet/src/lib.rs:349:3
|
349 | let _ = Incentives::update_incentives(amount_fees);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `Incentives::update_incentives(amount_fees);`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `#[warn(clippy::let_unit_value)]` on by default
|
missing documentation for a function:
runtime/testnet/src/lib.rs#L659
warning: missing documentation for a function
--> runtime/testnet/src/lib.rs:659:1
|
659 | / impl_runtime_apis! {
660 | |
661 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
662 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
1005 | | }
1006 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a module:
runtime/testnet/src/lib.rs#L659
warning: missing documentation for a module
--> runtime/testnet/src/lib.rs:659:1
|
659 | / impl_runtime_apis! {
660 | |
661 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
662 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
1005 | | }
1006 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
runtime/testnet/src/lib.rs#L659
warning: missing documentation for a constant
--> runtime/testnet/src/lib.rs:659:1
|
659 | / impl_runtime_apis! {
660 | |
661 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
662 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
1005 | | }
1006 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/testnet/src/lib.rs#L659
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:659:1
|
659 | / impl_runtime_apis! {
660 | |
661 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
662 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
1005 | | }
1006 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
large size difference between variants:
node/src/cli.rs#L5
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 544 bytes
... |
43 | | Key(sc_cli::KeySubcommand),
44 | | }
| |_^ the entire enum is at least 544 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>),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
missing documentation for an associated function:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for an associated function
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/config/xcm.rs#L211
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:211:1
|
211 | pub struct ResponseHandler<A, B>(PhantomData<(A, B)>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a type alias:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for a type alias
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/config/xcm.rs#L128
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:128:1
|
128 | pub struct XcmConfig;
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for a struct field
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a type alias:
runtime/devnet/src/config/xcm.rs#L126
warning: missing documentation for a type alias
--> runtime/devnet/src/config/xcm.rs:126:1
|
126 | pub type TrustedReserves = (NativeAsset, NativeAssetFrom<AssetHub>);
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for a variant
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a type alias:
runtime/devnet/src/config/xcm.rs#L101
warning: missing documentation for a type alias
--> runtime/devnet/src/config/xcm.rs:101:1
|
101 | pub type Barrier = TrailingSetTopicAsId<(
| ^^^^^^^^^^^^^^^^
|
missing documentation for an enum:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for an enum
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/config/xcm.rs#L94
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:94:1
|
94 | pub struct ParentOrParentsExecutivePlurality;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:87:1
|
87 | / parameter_types! {
88 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
89 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
90 | | pub const MaxInstructions: u32 = 100;
91 | | pub const MaxAssetsIntoHolding: u32 = 64;
92 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:529:1
|
529 | / parameter_types! {
530 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
531 | | pub const DepositBase: Balance = deposit(1, 88);
532 | | // Additional storage item size of 32 bytes.
533 | | pub const DepositFactor: Balance = deposit(0, 32);
534 | | pub const MaxSignatories: u32 = 100;
535 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:87:1
|
87 | / parameter_types! {
88 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
89 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
90 | | pub const MaxInstructions: u32 = 100;
91 | | pub const MaxAssetsIntoHolding: u32 = 64;
92 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:529:1
|
529 | / parameter_types! {
530 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
531 | | pub const DepositBase: Balance = deposit(1, 88);
532 | | // Additional storage item size of 32 bytes.
533 | | pub const DepositFactor: Balance = deposit(0, 32);
534 | | pub const MaxSignatories: u32 = 100;
535 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:87:1
|
87 | / parameter_types! {
88 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
89 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
90 | | pub const MaxInstructions: u32 = 100;
91 | | pub const MaxAssetsIntoHolding: u32 = 64;
92 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:529:1
|
529 | / parameter_types! {
530 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
531 | | pub const DepositBase: Balance = deposit(1, 88);
532 | | // Additional storage item size of 32 bytes.
533 | | pub const DepositFactor: Balance = deposit(0, 32);
534 | | pub const MaxSignatories: u32 = 100;
535 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:28:1
|
28 | / parameter_types! {
29 | | pub const RelayLocation: Location = Location::parent();
30 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
31 | | // Note: Paseo currently uses Polkadot https://github.com/paseo-network/runtimes/blob/abc4ae9c5ae8f0166aab7ef2b427b3c2c6d5ce5c/relay/...
... |
36 | | pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:510:1
|
510 | / parameter_types! {
511 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
512 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
513 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
514 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:28:1
|
28 | / parameter_types! {
29 | | pub const RelayLocation: Location = Location::parent();
30 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
31 | | // Note: Paseo currently uses Polkadot https://github.com/paseo-network/runtimes/blob/abc4ae9c5ae8f0166aab7ef2b427b3c2c6d5ce5c/relay/...
... |
36 | | pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:510:1
|
510 | / parameter_types! {
511 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
512 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
513 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
514 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:510:1
|
510 | / parameter_types! {
511 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
512 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
513 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
514 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:28:1
|
28 | / parameter_types! {
29 | | pub const RelayLocation: Location = Location::parent();
30 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
31 | | // Note: Paseo currently uses Polkadot https://github.com/paseo-network/runtimes/blob/abc4ae9c5ae8f0166aab7ef2b427b3c2c6d5ce5c/relay/...
... |
36 | | pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:489:1
|
489 | / parameter_types! {
490 | | pub MaximumSchedulerWeight: Weight = Perbill::from_percent(60) *
491 | | RuntimeBlockWeights::get().max_block;
492 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:28:1
|
28 | / parameter_types! {
29 | | pub const RelayLocation: Location = Location::parent();
30 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
31 | | // Note: Paseo currently uses Polkadot https://github.com/paseo-network/runtimes/blob/abc4ae9c5ae8f0166aab7ef2b427b3c2c6d5ce5c/relay/...
... |
36 | | pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:460:1
|
460 | / parameter_types! {
461 | | pub const PotId: PalletId = PalletId(*b"PotStake");
462 | | pub const SessionLength: BlockNumber = 6 * HOURS;
463 | | // StakingAdmin pluralistic body.
464 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
465 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/xcm.rs:28:1
|
28 | / parameter_types! {
29 | | pub const RelayLocation: Location = Location::parent();
30 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
31 | | // Note: Paseo currently uses Polkadot https://github.com/paseo-network/runtimes/blob/abc4ae9c5ae8f0166aab7ef2b427b3c2c6d5ce5c/relay/...
... |
36 | | pub UniversalLocation: InteriorLocation = Parachain(ParachainInfo::parachain_id().into()).into();
37 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:460:1
|
460 | / parameter_types! {
461 | | pub const PotId: PalletId = PalletId(*b"PotStake");
462 | | pub const SessionLength: BlockNumber = 6 * HOURS;
463 | | // StakingAdmin pluralistic body.
464 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
465 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
runtime/devnet/src/config/ismp.rs#L47
warning: missing documentation for a struct
--> runtime/devnet/src/config/ismp.rs:47:1
|
47 | pub struct Router;
| ^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:460:1
|
460 | / parameter_types! {
461 | | pub const PotId: PalletId = PalletId(*b"PotStake");
462 | | pub const SessionLength: BlockNumber = 6 * HOURS;
463 | | // StakingAdmin pluralistic body.
464 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
465 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/config/ismp.rs#L39
warning: missing documentation for a struct
--> runtime/devnet/src/config/ismp.rs:39:1
|
39 | pub struct HostStateMachine;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:433:1
|
433 | / parameter_types! {
434 | | pub const Period: u32 = 6 * HOURS;
435 | | pub const Offset: u32 = 0;
436 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
runtime/devnet/src/config/ismp.rs#L32
warning: missing documentation for a struct
--> runtime/devnet/src/config/ismp.rs:32:1
|
32 | pub struct Coprocessor;
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:433:1
|
433 | / parameter_types! {
434 | | pub const Period: u32 = 6 * HOURS;
435 | | pub const Offset: u32 = 0;
436 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a type alias:
runtime/devnet/src/config/assets.rs#L109
warning: missing documentation for a type alias
--> runtime/devnet/src/config/assets.rs:109:1
|
109 | pub type TrustBackedAssetsCall = pallet_assets::Call<Runtime, TrustBackedAssetsInstance>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:382:1
|
382 | / parameter_types! {
383 | | pub MessageQueueServiceWeight: Weight = Perbill::from_percent(35) * RuntimeBlockWeights::get().max_block;
384 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:82:1
|
82 | / parameter_types! {
83 | | pub const NftFractionalizationPalletId: PalletId = PalletId(*b"fraction");
84 | | pub NewAssetSymbol: BoundedVec<u8, AssetsStringLimit> = (*b"FRAC").to_vec().try_into().unwrap();
85 | | pub NewAssetName: BoundedVec<u8, AssetsStringLimit> = (*b"Frac").to_vec().try_into().unwrap();
86 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:353:1
|
353 | / parameter_types! {
354 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
355 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
356 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
357 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:82:1
|
82 | / parameter_types! {
83 | | pub const NftFractionalizationPalletId: PalletId = PalletId(*b"fraction");
84 | | pub NewAssetSymbol: BoundedVec<u8, AssetsStringLimit> = (*b"FRAC").to_vec().try_into().unwrap();
85 | | pub NewAssetName: BoundedVec<u8, AssetsStringLimit> = (*b"Frac").to_vec().try_into().unwrap();
86 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:353:1
|
353 | / parameter_types! {
354 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
355 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
356 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
357 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:82:1
|
82 | / parameter_types! {
83 | | pub const NftFractionalizationPalletId: PalletId = PalletId(*b"fraction");
84 | | pub NewAssetSymbol: BoundedVec<u8, AssetsStringLimit> = (*b"FRAC").to_vec().try_into().unwrap();
85 | | pub NewAssetName: BoundedVec<u8, AssetsStringLimit> = (*b"Frac").to_vec().try_into().unwrap();
86 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/config/assets.rs#L42
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:42:1
|
42 | pub struct KeyLimit<const N: u32>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:30:1
|
30 | / parameter_types! {
31 | | pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled();
32 | | pub const NftsCollectionDeposit: Balance = 10 * UNIT;
33 | | pub const NftsItemDeposit: Balance = UNIT / 100;
... |
37 | | pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS;
38 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:19:1
|
19 | / parameter_types! {
20 | | pub const AssetDeposit: Balance = 10 * UNIT;
21 | | pub const AssetAccountDeposit: Balance = deposit(1, 16);
22 | | pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
... |
27 | | pub const MetadataDepositPerByte: Balance = deposit(0, 1);
28 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:19:1
|
19 | / parameter_types! {
20 | | pub const AssetDeposit: Balance = 10 * UNIT;
21 | | pub const AssetAccountDeposit: Balance = deposit(1, 16);
22 | | pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
... |
27 | | pub const MetadataDepositPerByte: Balance = deposit(0, 1);
28 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:19:1
|
19 | / parameter_types! {
20 | | pub const AssetDeposit: Balance = 10 * UNIT;
21 | | pub const AssetAccountDeposit: Balance = deposit(1, 16);
22 | | pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
... |
27 | | pub const MetadataDepositPerByte: Balance = deposit(0, 1);
28 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:19:1
|
19 | / parameter_types! {
20 | | pub const AssetDeposit: Balance = 10 * UNIT;
21 | | pub const AssetAccountDeposit: Balance = deposit(1, 16);
22 | | pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
... |
27 | | pub const MetadataDepositPerByte: Balance = deposit(0, 1);
28 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/config/assets.rs:19:1
|
19 | / parameter_types! {
20 | | pub const AssetDeposit: Balance = 10 * UNIT;
21 | | pub const AssetAccountDeposit: Balance = deposit(1, 16);
22 | | pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
... |
27 | | pub const MetadataDepositPerByte: Balance = deposit(0, 1);
28 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a module:
runtime/devnet/src/config/mod.rs#L7
warning: missing documentation for a module
--> runtime/devnet/src/config/mod.rs:7:1
|
7 | pub mod xcm;
| ^^^^^^^^^^^
|
missing documentation for a module:
runtime/devnet/src/config/mod.rs#L4
warning: missing documentation for a module
--> runtime/devnet/src/config/mod.rs:4:1
|
4 | pub mod ismp;
| ^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:353:1
|
353 | / parameter_types! {
354 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
355 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
356 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
357 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a module:
runtime/devnet/src/config/mod.rs#L3
warning: missing documentation for a module
--> runtime/devnet/src/config/mod.rs:3:1
|
3 | pub mod assets;
| ^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:311:1
|
311 | / parameter_types! {
312 | | pub const ExistentialDeposit: Balance = EXISTENTIAL_DEPOSIT;
313 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for an associated function:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for an associated function
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:209:1
|
209 | / parameter_types! {
210 | | pub const Version: RuntimeVersion = VERSION;
211 | |
212 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
236 | | pub const SS58Prefix: u16 = 0;
237 | | }
| |_^
|
= 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)
|
missing documentation for a type alias:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for a type alias
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:209:1
|
209 | / parameter_types! {
210 | | pub const Version: RuntimeVersion = VERSION;
211 | |
212 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
236 | | pub const SS58Prefix: u16 = 0;
237 | | }
| |_^
|
= 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)
|
missing documentation for a struct field:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for a struct field
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:209:1
|
209 | / parameter_types! {
210 | | pub const Version: RuntimeVersion = VERSION;
211 | |
212 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
236 | | pub const SS58Prefix: u16 = 0;
237 | | }
| |_^
|
= 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)
|
missing documentation for a variant:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for a variant
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:209:1
|
209 | / parameter_types! {
210 | | pub const Version: RuntimeVersion = VERSION;
211 | |
212 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
236 | | pub const SS58Prefix: u16 = 0;
237 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
runtime/testnet/src/lib.rs#L179
warning: missing documentation for a constant
--> runtime/testnet/src/lib.rs:179:1
|
179 | pub const VERSION: RuntimeVersion = RuntimeVersion {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an enum:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for an enum
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2028
warning: missing documentation for a struct field
--> runtime/testnet/src/lib.rs:172:1
|
172 | / impl_opaque_keys! {
173 | | pub struct SessionKeys {
174 | | pub aura: Aura,
175 | | }
176 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/lib.rs#L597
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:597:1
|
597 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2025
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:172:1
|
172 | / impl_opaque_keys! {
173 | | pub struct SessionKeys {
174 | | pub aura: Aura,
175 | | }
176 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:572:1
|
572 | / parameter_types! {
573 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
574 | | pub const DepositBase: Balance = deposit(1, 88);
575 | | // Additional storage item size of 32 bytes.
576 | | pub const DepositFactor: Balance = deposit(0, 32);
577 | | pub const MaxSignatories: u32 = 100;
578 | | }
| |_^
|
= 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)
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-testnet-4b9a4868764403f0/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-testnet-4b9a4868764403f0/out/wasm_binary.rs:1:45
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:572:1
|
572 | / parameter_types! {
573 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
574 | | pub const DepositBase: Balance = deposit(1, 88);
575 | | // Additional storage item size of 32 bytes.
576 | | pub const DepositFactor: Balance = deposit(0, 32);
577 | | pub const MaxSignatories: u32 = 100;
578 | | }
| |_^
|
= 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)
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-testnet-4b9a4868764403f0/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-testnet-4b9a4868764403f0/out/wasm_binary.rs:1:1
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:572:1
|
572 | / parameter_types! {
573 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
574 | | pub const DepositBase: Balance = deposit(1, 88);
575 | | // Additional storage item size of 32 bytes.
576 | | pub const DepositFactor: Balance = deposit(0, 32);
577 | | pub const MaxSignatories: u32 = 100;
578 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a function:
runtime/mainnet/src/lib.rs#L680
warning: missing documentation for a function
--> runtime/mainnet/src/lib.rs:680:1
|
680 | / impl_runtime_apis! {
681 | |
682 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
683 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
915 | | }
916 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:553:1
|
553 | / parameter_types! {
554 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
555 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
556 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
557 | | }
| |_^
|
= 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)
|
missing documentation for a constant:
runtime/mainnet/src/lib.rs#L136
warning: missing documentation for a constant
--> runtime/mainnet/src/lib.rs:136:2
|
136 | pub const MILLICENTS: Balance = CENTS / 1_000; // 100_000
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:553:1
|
553 | / parameter_types! {
554 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
555 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
556 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
557 | | }
| |_^
|
= 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)
|
missing documentation for a constant:
runtime/mainnet/src/lib.rs#L135
warning: missing documentation for a constant
--> runtime/mainnet/src/lib.rs:135:2
|
135 | pub const CENTS: Balance = MILLIUNIT * 10; // 100_000_000
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:553:1
|
553 | / parameter_types! {
554 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
555 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
556 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
557 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/mainnet/src/config/xcm.rs#L124
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:124:1
|
124 | pub struct XcmConfig;
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:532:1
|
532 | / parameter_types! {
533 | | pub MaximumSchedulerWeight: Weight = Perbill::from_percent(60) *
534 | | RuntimeBlockWeights::get().max_block;
535 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a type alias:
runtime/mainnet/src/config/xcm.rs#L117
warning: missing documentation for a type alias
--> runtime/mainnet/src/config/xcm.rs:117:1
|
117 | pub type TrustedReserves = (NativeAsset, NativeAssetFrom<AssetHub>);
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a type alias:
runtime/mainnet/src/config/xcm.rs#L93
warning: missing documentation for a type alias
--> runtime/mainnet/src/config/xcm.rs:93:1
|
93 | pub type Barrier = TrailingSetTopicAsId<(
| ^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:86:1
|
86 | / parameter_types! {
87 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
88 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
89 | | pub const MaxInstructions: u32 = 100;
90 | | pub const MaxAssetsIntoHolding: u32 = 64;
91 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:86:1
|
86 | / parameter_types! {
87 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
88 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
89 | | pub const MaxInstructions: u32 = 100;
90 | | pub const MaxAssetsIntoHolding: u32 = 64;
91 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:86:1
|
86 | / parameter_types! {
87 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
88 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
89 | | pub const MaxInstructions: u32 = 100;
90 | | pub const MaxAssetsIntoHolding: u32 = 64;
91 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:31:1
|
31 | / parameter_types! {
32 | | pub const RelayLocation: Location = Location::parent();
33 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
34 | | pub const RelayNetwork: Option<NetworkId> = Some(Polkadot);
35 | | pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
36 | | pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().int...
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:31:1
|
31 | / parameter_types! {
32 | | pub const RelayLocation: Location = Location::parent();
33 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
34 | | pub const RelayNetwork: Option<NetworkId> = Some(Polkadot);
35 | | pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
36 | | pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().int...
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:31:1
|
31 | / parameter_types! {
32 | | pub const RelayLocation: Location = Location::parent();
33 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
34 | | pub const RelayNetwork: Option<NetworkId> = Some(Polkadot);
35 | | pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
36 | | pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().int...
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:31:1
|
31 | / parameter_types! {
32 | | pub const RelayLocation: Location = Location::parent();
33 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
34 | | pub const RelayNetwork: Option<NetworkId> = Some(Polkadot);
35 | | pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
36 | | pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().int...
37 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:31:1
|
31 | / parameter_types! {
32 | | pub const RelayLocation: Location = Location::parent();
33 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
34 | | pub const RelayNetwork: Option<NetworkId> = Some(Polkadot);
35 | | pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
36 | | pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().int...
37 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a module:
runtime/mainnet/src/config/mod.rs#L2
warning: missing documentation for a module
--> runtime/mainnet/src/config/mod.rs:2:1
|
2 | pub mod xcm;
| ^^^^^^^^^^^
|
missing documentation for a module:
runtime/mainnet/src/lib.rs#L680
warning: missing documentation for a module
--> runtime/mainnet/src/lib.rs:680:1
|
680 | / impl_runtime_apis! {
681 | |
682 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
683 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
915 | | }
916 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
runtime/mainnet/src/lib.rs#L680
warning: missing documentation for a constant
--> runtime/mainnet/src/lib.rs:680:1
|
680 | / impl_runtime_apis! {
681 | |
682 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
683 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
915 | | }
916 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/mainnet/src/lib.rs#L680
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:680:1
|
680 | / impl_runtime_apis! {
681 | |
682 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
683 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
915 | | }
916 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for an associated function:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for an associated function
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a type alias:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for a type alias
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for a struct field
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a variant:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for a variant
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for an enum:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for an enum
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:562:1
|
562 | / parameter_types! {
563 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
564 | | pub const DepositBase: Balance = deposit(1, 88);
565 | | // Additional storage item size of 32 bytes.
566 | | pub const DepositFactor: Balance = deposit(0, 32);
567 | | pub const MaxSignatories: u32 = 100;
568 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:562:1
|
562 | / parameter_types! {
563 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
564 | | pub const DepositBase: Balance = deposit(1, 88);
565 | | // Additional storage item size of 32 bytes.
566 | | pub const DepositFactor: Balance = deposit(0, 32);
567 | | pub const MaxSignatories: u32 = 100;
568 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:562:1
|
562 | / parameter_types! {
563 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
564 | | pub const DepositBase: Balance = deposit(1, 88);
565 | | // Additional storage item size of 32 bytes.
566 | | pub const DepositFactor: Balance = deposit(0, 32);
567 | | pub const MaxSignatories: u32 = 100;
568 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:543:1
|
543 | / parameter_types! {
544 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
545 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
546 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
547 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:543:1
|
543 | / parameter_types! {
544 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
545 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
546 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
547 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:543:1
|
543 | / parameter_types! {
544 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
545 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
546 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
547 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:522:1
|
522 | / parameter_types! {
523 | | pub MaximumSchedulerWeight: Weight = Perbill::from_percent(60) *
524 | | RuntimeBlockWeights::get().max_block;
525 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:494:1
|
494 | / parameter_types! {
495 | | pub const PotId: PalletId = PalletId(*b"PotStake");
496 | | // StakingAdmin pluralistic body.
497 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
498 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:503:1
|
503 | / parameter_types! {
504 | | pub const PotId: PalletId = PalletId(*b"PotStake");
505 | | pub const SessionLength: BlockNumber = 6 * HOURS;
506 | | // StakingAdmin pluralistic body.
507 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
508 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:494:1
|
494 | / parameter_types! {
495 | | pub const PotId: PalletId = PalletId(*b"PotStake");
496 | | // StakingAdmin pluralistic body.
497 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
498 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:503:1
|
503 | / parameter_types! {
504 | | pub const PotId: PalletId = PalletId(*b"PotStake");
505 | | pub const SessionLength: BlockNumber = 6 * HOURS;
506 | | // StakingAdmin pluralistic body.
507 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
508 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:467:1
|
467 | / parameter_types! {
468 | | pub const Period: u32 = 6 * HOURS;
469 | | pub const Offset: u32 = 0;
470 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:503:1
|
503 | / parameter_types! {
504 | | pub const PotId: PalletId = PalletId(*b"PotStake");
505 | | pub const SessionLength: BlockNumber = 6 * HOURS;
506 | | // StakingAdmin pluralistic body.
507 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
508 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:467:1
|
467 | / parameter_types! {
468 | | pub const Period: u32 = 6 * HOURS;
469 | | pub const Offset: u32 = 0;
470 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:476:1
|
476 | / parameter_types! {
477 | | pub const Period: u32 = 6 * HOURS;
478 | | pub const Offset: u32 = 0;
479 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:421:1
|
421 | / parameter_types! {
422 | | pub MessageQueueServiceWeight: Weight = Perbill::from_percent(35) * RuntimeBlockWeights::get().max_block;
423 | | pub MessageQueueIdleServiceWeight: Weight = Perbill::from_percent(20) * RuntimeBlockWeights::get().max_block;
424 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:476:1
|
476 | / parameter_types! {
477 | | pub const Period: u32 = 6 * HOURS;
478 | | pub const Offset: u32 = 0;
479 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:421:1
|
421 | / parameter_types! {
422 | | pub MessageQueueServiceWeight: Weight = Perbill::from_percent(35) * RuntimeBlockWeights::get().max_block;
423 | | pub MessageQueueIdleServiceWeight: Weight = Perbill::from_percent(20) * RuntimeBlockWeights::get().max_block;
424 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:430:1
|
430 | / parameter_types! {
431 | | pub MessageQueueServiceWeight: Weight = Perbill::from_percent(35) * RuntimeBlockWeights::get().max_block;
432 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:392:1
|
392 | / parameter_types! {
393 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
394 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
395 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
396 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:401:1
|
401 | / parameter_types! {
402 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
403 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
404 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
405 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:392:1
|
392 | / parameter_types! {
393 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
394 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
395 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
396 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:401:1
|
401 | / parameter_types! {
402 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
403 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
404 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
405 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:401:1
|
401 | / parameter_types! {
402 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
403 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
404 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
405 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/devnet/src/lib.rs#L363
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:363:1
|
363 | pub struct DealWithFees;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
runtime/devnet/src/lib.rs#L342
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:342:1
|
342 | pub struct ToIncentivesPot;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:320:1
|
320 | / parameter_types! {
321 | | pub const ExistentialDeposit: Balance = EXISTENTIAL_DEPOSIT;
322 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:308:1
|
308 | / parameter_types! {
309 | | pub const IncentivesId: PalletId = PalletId(*b"BuildInc");
310 | | pub const EraDuration: BlockNumber = 10 * MINUTES; // 10 minute for testing, 24 * HOURS for production (1 ERA in Polkadot)
311 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:308:1
|
308 | / parameter_types! {
309 | | pub const IncentivesId: PalletId = PalletId(*b"BuildInc");
310 | | pub const EraDuration: BlockNumber = 10 * MINUTES; // 10 minute for testing, 24 * HOURS for production (1 ERA in Polkadot)
311 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:214:1
|
214 | / parameter_types! {
215 | | pub const Version: RuntimeVersion = VERSION;
216 | |
217 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
241 | | pub const SS58Prefix: u16 = 42;
242 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:214:1
|
214 | / parameter_types! {
215 | | pub const Version: RuntimeVersion = VERSION;
216 | |
217 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
241 | | pub const SS58Prefix: u16 = 42;
242 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:214:1
|
214 | / parameter_types! {
215 | | pub const Version: RuntimeVersion = VERSION;
216 | |
217 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
241 | | pub const SS58Prefix: u16 = 42;
242 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:214:1
|
214 | / parameter_types! {
215 | | pub const Version: RuntimeVersion = VERSION;
216 | |
217 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
241 | | pub const SS58Prefix: u16 = 42;
242 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
runtime/devnet/src/lib.rs#L186
warning: missing documentation for a constant
--> runtime/devnet/src/lib.rs:186:1
|
186 | pub const VERSION: RuntimeVersion = RuntimeVersion {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2028
warning: missing documentation for a struct field
--> runtime/devnet/src/lib.rs:179:1
|
179 | / impl_opaque_keys! {
180 | | pub struct SessionKeys {
181 | | pub aura: Aura,
182 | | }
183 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2025
warning: missing documentation for a struct
--> runtime/devnet/src/lib.rs:179:1
|
179 | / impl_opaque_keys! {
180 | | pub struct SessionKeys {
181 | | pub aura: Aura,
182 | | }
183 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a module:
runtime/devnet/src/lib.rs#L10
warning: missing documentation for a module
--> runtime/devnet/src/lib.rs:10:1
|
10 | pub mod config;
| ^^^^^^^^^^^^^^
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-devnet-a3fc6b4f92e327af/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-devnet-a3fc6b4f92e327af/out/wasm_binary.rs:1:45
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-devnet-a3fc6b4f92e327af/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-devnet-a3fc6b4f92e327af/out/wasm_binary.rs:1:1
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
this let-binding has unit value:
runtime/devnet/src/lib.rs#L349
warning: this let-binding has unit value
--> runtime/devnet/src/lib.rs:349:3
|
349 | let _ = Incentives::update_incentives(amount_fees);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `Incentives::update_incentives(amount_fees);`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `#[warn(clippy::let_unit_value)]` on by default
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:392:1
|
392 | / parameter_types! {
393 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
394 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
395 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
396 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a function:
runtime/testnet/src/lib.rs#L659
warning: missing documentation for a function
--> runtime/testnet/src/lib.rs:659:1
|
659 | / impl_runtime_apis! {
660 | |
661 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
662 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
1005 | | }
1006 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:370:1
|
370 | / parameter_types! {
371 | | /// Relay Chain `TransactionByteFee` / 10
372 | | pub const TransactionByteFee: Balance = fee::TRANSACTION_BYTE_FEE;
373 | | pub SudoAddress: AccountId = AccountId::from_ss58check("15NMV2JX1NeMwarQiiZvuJ8ixUcvayFDcu1F9Wz1HNpSc8gP").expect("sudo address is va...
374 | | }
| |_^
|
= 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)
|
missing documentation for a module:
runtime/testnet/src/lib.rs#L659
warning: missing documentation for a module
--> runtime/testnet/src/lib.rs:659:1
|
659 | / impl_runtime_apis! {
660 | |
661 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
662 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
1005 | | }
1006 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:347:1
|
347 | / parameter_types! {
348 | | // increase ED 100 times to match system chains: 1_000_000_000
349 | | pub const ExistentialDeposit: Balance = EXISTENTIAL_DEPOSIT * 100;
350 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
runtime/testnet/src/lib.rs#L659
warning: missing documentation for a constant
--> runtime/testnet/src/lib.rs:659:1
|
659 | / impl_runtime_apis! {
660 | |
661 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
662 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
1005 | | }
1006 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:253:1
|
253 | / parameter_types! {
254 | | pub const Version: RuntimeVersion = VERSION;
255 | |
256 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
280 | | pub const SS58Prefix: u16 = 0;
281 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
runtime/testnet/src/lib.rs#L659
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:659:1
|
659 | / impl_runtime_apis! {
660 | |
661 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
662 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
1005 | | }
1006 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:253:1
|
253 | / parameter_types! {
254 | | pub const Version: RuntimeVersion = VERSION;
255 | |
256 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
280 | | pub const SS58Prefix: u16 = 0;
281 | | }
| |_^
|
= 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)
|
missing documentation for an associated function:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for an associated function
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:253:1
|
253 | / parameter_types! {
254 | | pub const Version: RuntimeVersion = VERSION;
255 | |
256 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
280 | | pub const SS58Prefix: u16 = 0;
281 | | }
| |_^
|
= 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)
|
missing documentation for a type alias:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for a type alias
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:253:1
|
253 | / parameter_types! {
254 | | pub const Version: RuntimeVersion = VERSION;
255 | |
256 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
280 | | pub const SS58Prefix: u16 = 0;
281 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for a struct field
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
runtime/mainnet/src/lib.rs#L235
warning: missing documentation for a constant
--> runtime/mainnet/src/lib.rs:235:1
|
235 | pub const VERSION: RuntimeVersion = RuntimeVersion {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for a variant
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2028
warning: missing documentation for a struct field
--> runtime/mainnet/src/lib.rs:228:1
|
228 | / impl_opaque_keys! {
229 | | pub struct SessionKeys {
230 | | pub aura: Aura,
231 | | }
232 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for an enum:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for an enum
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2025
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:228:1
|
228 | / impl_opaque_keys! {
229 | | pub struct SessionKeys {
230 | | pub aura: Aura,
231 | | }
232 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
runtime/testnet/src/lib.rs#L554
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:554:1
|
554 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a function:
runtime/mainnet/src/lib.rs#L116
warning: missing documentation for a function
--> runtime/mainnet/src/lib.rs:116:1
|
116 | pub const fn deposit(items: u32, bytes: u32) -> Balance {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:529:1
|
529 | / parameter_types! {
530 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
531 | | pub const DepositBase: Balance = deposit(1, 88);
532 | | // Additional storage item size of 32 bytes.
533 | | pub const DepositFactor: Balance = deposit(0, 32);
534 | | pub const MaxSignatories: u32 = 100;
535 | | }
| |_^
|
= 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)
|
missing documentation for a module:
runtime/mainnet/src/lib.rs#L9
warning: missing documentation for a module
--> runtime/mainnet/src/lib.rs:9:1
|
9 | pub mod config;
| ^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:529:1
|
529 | / parameter_types! {
530 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
531 | | pub const DepositBase: Balance = deposit(1, 88);
532 | | // Additional storage item size of 32 bytes.
533 | | pub const DepositFactor: Balance = deposit(0, 32);
534 | | pub const MaxSignatories: u32 = 100;
535 | | }
| |_^
|
= 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)
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-mainnet-c60d826f4f698c2e/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-mainnet-c60d826f4f698c2e/out/wasm_binary.rs:1:45
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:529:1
|
529 | / parameter_types! {
530 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
531 | | pub const DepositBase: Balance = deposit(1, 88);
532 | | // Additional storage item size of 32 bytes.
533 | | pub const DepositFactor: Balance = deposit(0, 32);
534 | | pub const MaxSignatories: u32 = 100;
535 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-mainnet-c60d826f4f698c2e/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-mainnet-c60d826f4f698c2e/out/wasm_binary.rs:1:1
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:510:1
|
510 | / parameter_types! {
511 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
512 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
513 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
514 | | }
| |_^
|
= 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)
|
missing documentation for the crate:
integration-tests/src/lib.rs#L1
warning: missing documentation for the crate
--> integration-tests/src/lib.rs:1:1
|
1 | / #![cfg(test)]
2 | |
3 | | use asset_hub_paseo_runtime::xcm_config::XcmConfig as AssetHubPaseoXcmConfig;
4 | | use asset_test_utils::xcm_helpers;
... |
597 | | });
598 | | }
| |_^
|
= note: requested on the command line with `-W missing-docs`
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:510:1
|
510 | / parameter_types! {
511 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
512 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
513 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
514 | | }
| |_^
|
= 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)
|
you are using an explicit closure for cloning elements:
pallets/revive/proc-macro/src/lib.rs#L576
warning: you are using an explicit closure for cloning elements
--> pallets/revive/proc-macro/src/lib.rs:576:17
|
576 | sig.inputs = sig
| __________________________^
577 | | .inputs
578 | | .iter()
579 | | .skip(2)
580 | | .map(|p| p.clone())
| |___________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
= note: `#[warn(clippy::map_clone)]` on by default
help: consider calling the dedicated `cloned` method
|
576 ~ sig.inputs = sig
577 ~ .inputs
578 ~ .iter()
579 ~ .skip(2).cloned()
|
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:510:1
|
510 | / parameter_types! {
511 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
512 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
513 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
514 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L317
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:317:23
|
317 | _ => Err(err(span, &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:489:1
|
489 | / parameter_types! {
490 | | pub MaximumSchedulerWeight: Weight = Perbill::from_percent(60) *
491 | | RuntimeBlockWeights::get().max_block;
492 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L314
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:314:25
|
314 | _ => Err(err(span, &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:460:1
|
460 | / parameter_types! {
461 | | pub const PotId: PalletId = PalletId(*b"PotStake");
462 | | pub const SessionLength: BlockNumber = 6 * HOURS;
463 | | // StakingAdmin pluralistic body.
464 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
465 | | }
| |_^
|
= 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)
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L309
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:309:34
|
309 | ... _ => Err(err(arg1.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:460:1
|
460 | / parameter_types! {
461 | | pub const PotId: PalletId = PalletId(*b"PotStake");
462 | | pub const SessionLength: BlockNumber = 6 * HOURS;
463 | | // StakingAdmin pluralistic body.
464 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
465 | | }
| |_^
|
= 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)
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L303
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:303:35
|
303 | ... _ => Err(err(ok_ty.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:460:1
|
460 | / parameter_types! {
461 | | pub const PotId: PalletId = PalletId(*b"PotStake");
462 | | pub const SessionLength: BlockNumber = 6 * HOURS;
463 | | // StakingAdmin pluralistic body.
464 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
465 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L299
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:299:38
|
299 | ... return Err(err(arg1.span(), &msg))
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:433:1
|
433 | / parameter_types! {
434 | | pub const Period: u32 = 6 * HOURS;
435 | | pub const Offset: u32 = 0;
436 | | }
| |_^
|
= 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)
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L294
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:294:33
|
294 | ... .ok_or(err(arg1.span(), &msg))?
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:433:1
|
433 | / parameter_types! {
434 | | pub const Period: u32 = 6 * HOURS;
435 | | pub const Offset: u32 = 0;
436 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L287
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:287:34
|
287 | ... _ => Err(err(arg1.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:382:1
|
382 | / parameter_types! {
383 | | pub MessageQueueServiceWeight: Weight = Perbill::from_percent(35) * RuntimeBlockWeights::get().max_block;
384 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L284
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:284:53
|
284 | let arg1 = group.args.first().ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:353:1
|
353 | / parameter_types! {
354 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
355 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
356 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
357 | | }
| |_^
|
= 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)
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L282
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:282:24
|
282 | .ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:353:1
|
353 | / parameter_types! {
354 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
355 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
356 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
357 | | }
| |_^
|
= 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)
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L278
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:278:32
|
278 | ... _ => Err(err(tp.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L275
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:275:33
|
275 | ... .ok_or(err(arg2.span(), &msg))?
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L267
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:267:34
|
267 | ... _ => Err(err(arg2.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L263
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:263:52
|
263 | let arg2 = group.args.last().ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L260
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:260:29
|
260 | ... return Err(err(span, &msg))
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L255
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:255:64
|
255 | id.eq(&"Result".to_string()).then_some(()).ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L253
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:253:59
|
253 | let result = &tp.path.segments.last().ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L249
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:249:23
|
249 | _ => Err(err(span, &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
the function `expand_env` doesn't need a mutable reference:
pallets/revive/proc-macro/src/lib.rs#L108
warning: the function `expand_env` doesn't need a mutable reference
--> pallets/revive/proc-macro/src/lib.rs:108:29
|
108 | Ok(mut def) => expand_env(&mut def).into(),
| ^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
= note: `#[warn(clippy::unnecessary_mut_passed)]` on by default
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L66
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:66:5
|
66 | /// }
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L65
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:65:5
|
65 | /// ctx.some_host_fn(KeyType::Fix, key_ptr, value_ptr, value_len).map(|_| ())
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L64
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:64:5
|
64 | /// fn bar(ctx: _, memory: _, key_ptr: u32, value_ptr: u32, value_len: u32) -> Result<u32, TrapReason> {
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L63
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:63:5
|
63 | /// #[unstable]
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L62
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:62:5
|
62 | /// #[version(3)]
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L60
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:60:5
|
60 | /// }
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L59
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:59:5
|
59 | /// ctx.some_host_fn(KeyType::Fix, key_ptr, value_ptr, value_len).map(|_| ())
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L58
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:58:5
|
58 | /// fn foo(ctx: _, memory: _, key_ptr: u32, value_ptr: u32, value_len: u32) -> Result<ReturnErrorCode, TrapReason> {
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L57
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:57:5
|
57 | /// #[version(2)]
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L43
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:43:5
|
43 | /// }
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L42
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:42:5
|
42 | /// ctx.some_host_fn(KeyType::Fix, key_ptr, value_ptr, value_len).map(|_| ())
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L41
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:41:5
|
41 | /// fn foo(ctx: _, memory: _, key_ptr: u32, value_ptr: u32, value_len: u32) -> Result<(), TrapReason> {
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
= note: `#[warn(clippy::tabs_in_doc_comments)]` on by default
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
373 | | #[pallet::weight(NftsWeightInfoOf::<T>::burn())]
374 | | pub fn burn(
| |___________________^
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
345 | | #[pallet::weight(NftsWeightInfoOf::<T>::mint())]
346 | | pub fn mint(
| |___________________^
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
335 | | #[pallet::weight(NftsWeightInfoOf::<T>::set_collection_max_supply())]
336 | | pub fn set_max_supply(
| |_____________________________^
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
317 | | #[pallet::weight(NftsWeightInfoOf::<T>::cancel_item_attributes_approval(witness.account_attributes))]
318 | | pub fn cancel_item_attributes_approval(
| |______________________________________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:353:1
|
353 | / parameter_types! {
354 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
355 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
356 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
357 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:311:1
|
311 | / parameter_types! {
312 | | pub const ExistentialDeposit: Balance = EXISTENTIAL_DEPOSIT;
313 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:209:1
|
209 | / parameter_types! {
210 | | pub const Version: RuntimeVersion = VERSION;
211 | |
212 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
236 | | pub const SS58Prefix: u16 = 0;
237 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:209:1
|
209 | / parameter_types! {
210 | | pub const Version: RuntimeVersion = VERSION;
211 | |
212 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
236 | | pub const SS58Prefix: u16 = 0;
237 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:209:1
|
209 | / parameter_types! {
210 | | pub const Version: RuntimeVersion = VERSION;
211 | |
212 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
236 | | pub const SS58Prefix: u16 = 0;
237 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:209:1
|
209 | / parameter_types! {
210 | | pub const Version: RuntimeVersion = VERSION;
211 | |
212 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
236 | | pub const SS58Prefix: u16 = 0;
237 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
runtime/testnet/src/lib.rs#L179
warning: missing documentation for a constant
--> runtime/testnet/src/lib.rs:179:1
|
179 | pub const VERSION: RuntimeVersion = RuntimeVersion {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2028
warning: missing documentation for a struct field
--> runtime/testnet/src/lib.rs:172:1
|
172 | / impl_opaque_keys! {
173 | | pub struct SessionKeys {
174 | | pub aura: Aura,
175 | | }
176 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2025
warning: missing documentation for a struct
--> runtime/testnet/src/lib.rs:172:1
|
172 | / impl_opaque_keys! {
173 | | pub struct SessionKeys {
174 | | pub aura: Aura,
175 | | }
176 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-testnet-4b9a4868764403f0/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-testnet-4b9a4868764403f0/out/wasm_binary.rs:1:45
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-testnet-4b9a4868764403f0/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-testnet-4b9a4868764403f0/out/wasm_binary.rs:1:1
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a function:
runtime/mainnet/src/lib.rs#L680
warning: missing documentation for a function
--> runtime/mainnet/src/lib.rs:680:1
|
680 | / impl_runtime_apis! {
681 | |
682 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
683 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
915 | | }
916 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
runtime/mainnet/src/lib.rs#L136
warning: missing documentation for a constant
--> runtime/mainnet/src/lib.rs:136:2
|
136 | pub const MILLICENTS: Balance = CENTS / 1_000; // 100_000
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
runtime/mainnet/src/lib.rs#L135
warning: missing documentation for a constant
--> runtime/mainnet/src/lib.rs:135:2
|
135 | pub const CENTS: Balance = MILLIUNIT * 10; // 100_000_000
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
runtime/mainnet/src/config/xcm.rs#L124
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:124:1
|
124 | pub struct XcmConfig;
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a type alias:
runtime/mainnet/src/config/xcm.rs#L117
warning: missing documentation for a type alias
--> runtime/mainnet/src/config/xcm.rs:117:1
|
117 | pub type TrustedReserves = (NativeAsset, NativeAssetFrom<AssetHub>);
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a type alias:
runtime/mainnet/src/config/xcm.rs#L93
warning: missing documentation for a type alias
--> runtime/mainnet/src/config/xcm.rs:93:1
|
93 | pub type Barrier = TrailingSetTopicAsId<(
| ^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
301 | | #[pallet::weight(NftsWeightInfoOf::<T>::approve_item_attributes())]
302 | | pub fn approve_item_attributes(
| |______________________________________^
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
291 | | #[pallet::weight(NftsWeightInfoOf::<T>::clear_metadata())]
292 | | pub fn clear_metadata(
| |_____________________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:86:1
|
86 | / parameter_types! {
87 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
88 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
89 | | pub const MaxInstructions: u32 = 100;
90 | | pub const MaxAssetsIntoHolding: u32 = 64;
91 | | }
| |_^
|
= 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)
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
280 | | #[pallet::weight(NftsWeightInfoOf::<T>::set_metadata())]
281 | | pub fn set_metadata(
| |___________________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:86:1
|
86 | / parameter_types! {
87 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
88 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
89 | | pub const MaxInstructions: u32 = 100;
90 | | pub const MaxAssetsIntoHolding: u32 = 64;
91 | | }
| |_^
|
= 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)
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
268 | | #[pallet::weight(NftsWeightInfoOf::<T>::clear_attribute())]
269 | | pub fn clear_attribute(
| |______________________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:86:1
|
86 | / parameter_types! {
87 | | // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
88 | | pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
89 | | pub const MaxInstructions: u32 = 100;
90 | | pub const MaxAssetsIntoHolding: u32 = 64;
91 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
255 | | #[pallet::weight(NftsWeightInfoOf::<T>::set_attribute())]
256 | | pub fn set_attribute(
| |____________________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:31:1
|
31 | / parameter_types! {
32 | | pub const RelayLocation: Location = Location::parent();
33 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
34 | | pub const RelayNetwork: Option<NetworkId> = Some(Polkadot);
35 | | pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
36 | | pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().int...
37 | | }
| |_^
|
= 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)
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
245 | | ))]
246 | | pub fn destroy(
| |______________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:31:1
|
31 | / parameter_types! {
32 | | pub const RelayLocation: Location = Location::parent();
33 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
34 | | pub const RelayNetwork: Option<NetworkId> = Some(Polkadot);
35 | | pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
36 | | pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().int...
37 | | }
| |_^
|
= 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)
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
217 | | #[pallet::weight(NftsWeightInfoOf::<T>::create())]
218 | | pub fn create(
| |_____________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:31:1
|
31 | / parameter_types! {
32 | | pub const RelayLocation: Location = Location::parent();
33 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
34 | | pub const RelayNetwork: Option<NetworkId> = Some(Polkadot);
35 | | pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
36 | | pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().int...
37 | | }
| |_^
|
= 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)
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
... |
187 | | #[pallet::weight(NftsWeightInfoOf::<T>::approve_transfer() + NftsWeightInfoOf::<T>::cancel_approval())]
188 | | pub fn approve(
| |______________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:31:1
|
31 | / parameter_types! {
32 | | pub const RelayLocation: Location = Location::parent();
33 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
34 | | pub const RelayNetwork: Option<NetworkId> = Some(Polkadot);
35 | | pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
36 | | pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().int...
37 | | }
| |_^
|
= 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)
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L164
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:164:12
|
164 | #[pallet::call]
| _______________^
165 | | impl<T: Config> Pallet<T> {
166 | | #[pallet::call_index(3)]
167 | | #[pallet::weight(NftsWeightInfoOf::<T>::transfer())]
168 | | pub fn transfer(
| |_______________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/config/xcm.rs:31:1
|
31 | / parameter_types! {
32 | | pub const RelayLocation: Location = Location::parent();
33 | | pub AssetHub: Location = Location::new(1, [Parachain(1000)]);
34 | | pub const RelayNetwork: Option<NetworkId> = Some(Polkadot);
35 | | pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
36 | | pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get().unwrap()), Parachain(ParachainInfo::parachain_id().int...
37 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for an associated function:
pallets/api/src/nonfungibles/mod.rs#L14
warning: missing documentation for an associated function
--> pallets/api/src/nonfungibles/mod.rs:14:1
|
14 | #[frame_support::pallet]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::pallet` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a module:
runtime/mainnet/src/config/mod.rs#L2
warning: missing documentation for a module
--> runtime/mainnet/src/config/mod.rs:2:1
|
2 | pub mod xcm;
| ^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L70
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:70:49
|
70 | ItemMetadata { collection: CollectionIdOf<T>, item: ItemIdOf<T> },
| ^^^^^^^^^^^^^^^^^
|
missing documentation for a module:
runtime/mainnet/src/lib.rs#L680
warning: missing documentation for a module
--> runtime/mainnet/src/lib.rs:680:1
|
680 | / impl_runtime_apis! {
681 | |
682 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
683 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
915 | | }
916 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L70
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:70:18
|
70 | ItemMetadata { collection: CollectionIdOf<T>, item: ItemIdOf<T> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
runtime/mainnet/src/lib.rs#L680
warning: missing documentation for a constant
--> runtime/mainnet/src/lib.rs:680:1
|
680 | / impl_runtime_apis! {
681 | |
682 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
683 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
915 | | }
916 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a variant:
pallets/api/src/nonfungibles/mod.rs#L70
warning: missing documentation for a variant
--> pallets/api/src/nonfungibles/mod.rs:70:3
|
70 | ItemMetadata { collection: CollectionIdOf<T>, item: ItemIdOf<T> },
| ^^^^^^^^^^^^
|
missing documentation for a struct:
runtime/mainnet/src/lib.rs#L680
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:680:1
|
680 | / impl_runtime_apis! {
681 | |
682 | | impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
683 | | fn slot_duration() -> sp_consensus_aura::SlotDuration {
... |
915 | | }
916 | | }
| |_^
|
= note: this warning originates in the macro `impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L61
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:61:4
|
61 | key: BoundedVec<u8, T::KeyLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for an associated function
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L60
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:60:4
|
60 | namespace: AttributeNamespaceOf<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a type alias:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for a type alias
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L59
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:59:4
|
59 | item: ItemIdOf<T>,
| ^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for a struct field
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L58
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:58:4
|
58 | collection: CollectionIdOf<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L54
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:54:44
|
54 | OwnerOf { collection: CollectionIdOf<T>, item: ItemIdOf<T> },
| ^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for a variant
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L54
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:54:13
|
54 | OwnerOf { collection: CollectionIdOf<T>, item: ItemIdOf<T> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L50
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:50:4
|
50 | item: Option<ItemIdOf<T>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an enum:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for an enum
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L49
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:49:4
|
49 | operator: AccountIdOf<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
runtime/mainnet/src/lib.rs#L587
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:587:1
|
587 | #[frame_support::runtime]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::runtime` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L48
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:48:4
|
48 | owner: AccountIdOf<T>,
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:562:1
|
562 | / parameter_types! {
563 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
564 | | pub const DepositBase: Balance = deposit(1, 88);
565 | | // Additional storage item size of 32 bytes.
566 | | pub const DepositFactor: Balance = deposit(0, 32);
567 | | pub const MaxSignatories: u32 = 100;
568 | | }
| |_^
|
= 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)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L47
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:47:4
|
47 | collection: CollectionIdOf<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:562:1
|
562 | / parameter_types! {
563 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
564 | | pub const DepositBase: Balance = deposit(1, 88);
565 | | // Additional storage item size of 32 bytes.
566 | | pub const DepositFactor: Balance = deposit(0, 32);
567 | | pub const MaxSignatories: u32 = 100;
568 | | }
| |_^
|
= 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)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L43
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:43:46
|
43 | BalanceOf { collection: CollectionIdOf<T>, owner: AccountIdOf<T> },
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:562:1
|
562 | / parameter_types! {
563 | | // One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
564 | | pub const DepositBase: Balance = deposit(1, 88);
565 | | // Additional storage item size of 32 bytes.
566 | | pub const DepositFactor: Balance = deposit(0, 32);
567 | | pub const MaxSignatories: u32 = 100;
568 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/mod.rs#L43
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/mod.rs:43:15
|
43 | BalanceOf { collection: CollectionIdOf<T>, owner: AccountIdOf<T> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:543:1
|
543 | / parameter_types! {
544 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
545 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
546 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
547 | | }
| |_^
|
= 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)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/types.rs#L38
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/types.rs:38:2
|
38 | pub end_block: Option<BlockNumber>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:543:1
|
543 | / parameter_types! {
544 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
545 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
546 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
547 | | }
| |_^
|
= 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)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/types.rs#L37
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/types.rs:37:2
|
37 | pub start_block: Option<BlockNumber>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:543:1
|
543 | / parameter_types! {
544 | | pub const PreimageHoldReason: RuntimeHoldReason = RuntimeHoldReason::Preimage(pallet_preimage::HoldReason::Preimage);
545 | | pub const PreimageBaseDeposit: Balance = deposit(2, 64);
546 | | pub const PreimageByteDeposit: Balance = deposit(0, 1);
547 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/types.rs#L36
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/types.rs:36:2
|
36 | pub price: Option<Price>,
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:522:1
|
522 | / parameter_types! {
523 | | pub MaximumSchedulerWeight: Weight = Perbill::from_percent(60) *
524 | | RuntimeBlockWeights::get().max_block;
525 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/types.rs#L35
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/types.rs:35:2
|
35 | pub mint_type: MintType<CollectionId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:494:1
|
494 | / parameter_types! {
495 | | pub const PotId: PalletId = PalletId(*b"PotStake");
496 | | // StakingAdmin pluralistic body.
497 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
498 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:494:1
|
494 | / parameter_types! {
495 | | pub const PotId: PalletId = PalletId(*b"PotStake");
496 | | // StakingAdmin pluralistic body.
497 | | pub const StakingAdminBodyId: BodyId = BodyId::Defense;
498 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/nonfungibles/types.rs#L34
warning: missing documentation for a struct field
--> pallets/api/src/nonfungibles/types.rs:34:2
|
34 | pub max_supply: Option<u32>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:467:1
|
467 | / parameter_types! {
468 | | pub const Period: u32 = 6 * HOURS;
469 | | pub const Offset: u32 = 0;
470 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
pallets/api/src/nonfungibles/types.rs#L33
warning: missing documentation for a struct
--> pallets/api/src/nonfungibles/types.rs:33:1
|
33 | pub struct CreateCollectionConfig<Price, BlockNumber, CollectionId> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:467:1
|
467 | / parameter_types! {
468 | | pub const Period: u32 = 6 * HOURS;
469 | | pub const Offset: u32 = 0;
470 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a module:
pallets/api/src/nonfungibles/mod.rs#L12
warning: missing documentation for a module
--> pallets/api/src/nonfungibles/mod.rs:12:1
|
12 | pub mod types;
| ^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:421:1
|
421 | / parameter_types! {
422 | | pub MessageQueueServiceWeight: Weight = Perbill::from_percent(35) * RuntimeBlockWeights::get().max_block;
423 | | pub MessageQueueIdleServiceWeight: Weight = Perbill::from_percent(20) * RuntimeBlockWeights::get().max_block;
424 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:421:1
|
421 | / parameter_types! {
422 | | pub MessageQueueServiceWeight: Weight = Perbill::from_percent(35) * RuntimeBlockWeights::get().max_block;
423 | | pub MessageQueueIdleServiceWeight: Weight = Perbill::from_percent(20) * RuntimeBlockWeights::get().max_block;
424 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L139
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:139:12
|
139 | #[pallet::call]
| _______________^
140 | | impl<T: Config> Pallet<T> {
141 | | #[pallet::call_index(0)]
142 | | #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
... |
240 | | #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
241 | | pub fn remove(
| |_____________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:392:1
|
392 | / parameter_types! {
393 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
394 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
395 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
396 | | }
| |_^
|
= 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)
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L139
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:139:12
|
139 | #[pallet::call]
| _______________^
140 | | impl<T: Config> Pallet<T> {
141 | | #[pallet::call_index(0)]
142 | | #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
... |
208 | | #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
209 | | pub fn xcm_new_query(
| |____________________________^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:392:1
|
392 | / parameter_types! {
393 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
394 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
395 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
396 | | }
| |_^
|
= 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)
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L139
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:139:12
|
139 | #[pallet::call]
| _______________^
140 | | impl<T: Config> Pallet<T> {
141 | | #[pallet::call_index(0)]
142 | | #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
... |
180 | | #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
181 | | pub fn ismp_post(
| |________________________^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L139
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:139:12
|
139 | #[pallet::call]
| _______________^
140 | | impl<T: Config> Pallet<T> {
141 | | #[pallet::call_index(0)]
142 | | #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
... |
151 | | #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
152 | | pub fn ismp_get(
| |_______________________^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L139
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:139:12
|
139 | #[pallet::call]
| _______________^
140 | | impl<T: Config> Pallet<T> {
141 | | #[pallet::call_index(0)]
142 | | #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
143 | | pub fn send(_origin: OriginFor<T>, _id: MessageId) -> DispatchResult {
| |___________________^
|
missing documentation for an associated function:
pallets/api/src/messaging/mod.rs#L30
warning: missing documentation for an associated function
--> pallets/api/src/messaging/mod.rs:30:1
|
30 | #[frame_support::pallet]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `frame_support::pallet` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L128
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:128:3
|
128 | RequestPending,
| ^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L127
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:127:3
|
127 | MessageExists,
| ^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L126
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:126:3
|
126 | OriginConversionFailed,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L125
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:125:3
|
125 | InvalidMessage,
| ^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L124
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:124:3
|
124 | DispatchFailed,
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L119
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:119:35
|
119 | Removed { origin: T::AccountId, messages: Vec<MessageId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L119
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:119:13
|
119 | Removed { origin: T::AccountId, messages: Vec<MessageId> },
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L119
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:119:3
|
119 | Removed { origin: T::AccountId, messages: Vec<MessageId> },
| ^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L118
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:118:45
|
118 | XcmResponseReceived { dest: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L118
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:118:25
|
118 | XcmResponseReceived { dest: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L118
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:118:3
|
118 | XcmResponseReceived { dest: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L117
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:117:43
|
117 | XcmQueryCreated { origin: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:392:1
|
392 | / parameter_types! {
393 | | pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
394 | | pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
395 | | pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
396 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:370:1
|
370 | / parameter_types! {
371 | | /// Relay Chain `TransactionByteFee` / 10
372 | | pub const TransactionByteFee: Balance = fee::TRANSACTION_BYTE_FEE;
373 | | pub SudoAddress: AccountId = AccountId::from_ss58check("15NMV2JX1NeMwarQiiZvuJ8ixUcvayFDcu1F9Wz1HNpSc8gP").expect("sudo address is va...
374 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:347:1
|
347 | / parameter_types! {
348 | | // increase ED 100 times to match system chains: 1_000_000_000
349 | | pub const ExistentialDeposit: Balance = EXISTENTIAL_DEPOSIT * 100;
350 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:253:1
|
253 | / parameter_types! {
254 | | pub const Version: RuntimeVersion = VERSION;
255 | |
256 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
280 | | pub const SS58Prefix: u16 = 0;
281 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:253:1
|
253 | / parameter_types! {
254 | | pub const Version: RuntimeVersion = VERSION;
255 | |
256 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
280 | | pub const SS58Prefix: u16 = 0;
281 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L275
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:253:1
|
253 | / parameter_types! {
254 | | pub const Version: RuntimeVersion = VERSION;
255 | |
256 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
280 | | pub const SS58Prefix: u16 = 0;
281 | | }
| |_^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:253:1
|
253 | / parameter_types! {
254 | | pub const Version: RuntimeVersion = VERSION;
255 | |
256 | | // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
... |
280 | | pub const SS58Prefix: u16 = 0;
281 | | }
| |_^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a constant:
runtime/mainnet/src/lib.rs#L235
warning: missing documentation for a constant
--> runtime/mainnet/src/lib.rs:235:1
|
235 | pub const VERSION: RuntimeVersion = RuntimeVersion {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2028
warning: missing documentation for a struct field
--> runtime/mainnet/src/lib.rs:228:1
|
228 | / impl_opaque_keys! {
229 | | pub struct SessionKeys {
230 | | pub aura: Aura,
231 | | }
232 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-runtime-38.0.0/src/traits.rs#L2025
warning: missing documentation for a struct
--> runtime/mainnet/src/lib.rs:228:1
|
228 | / impl_opaque_keys! {
229 | | pub struct SessionKeys {
230 | | pub aura: Aura,
231 | | }
232 | | }
| |_^
|
= note: this warning originates in the macro `$crate::impl_opaque_keys_inner` which comes from the expansion of the macro `impl_opaque_keys` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L117
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:117:21
|
117 | XcmQueryCreated { origin: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a function:
runtime/mainnet/src/lib.rs#L116
warning: missing documentation for a function
--> runtime/mainnet/src/lib.rs:116:1
|
116 | pub const fn deposit(items: u32, bytes: u32) -> Balance {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L117
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:117:3
|
117 | XcmQueryCreated { origin: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a module:
runtime/mainnet/src/lib.rs#L9
warning: missing documentation for a module
--> runtime/mainnet/src/lib.rs:9:1
|
9 | pub mod config;
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L116
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:116:50
|
116 | IsmpPostResponseReceived { dest: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-mainnet-c60d826f4f698c2e/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-mainnet-c60d826f4f698c2e/out/wasm_binary.rs:1:45
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L116
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:116:30
|
116 | IsmpPostResponseReceived { dest: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
/home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-mainnet-c60d826f4f698c2e/out/wasm_binary.rs#L1
warning: missing documentation for a constant
--> /home/runner/work/pop-node/pop-node/target/release/build/pop-runtime-mainnet-c60d826f4f698c2e/out/wasm_binary.rs:1:1
|
1 | pub const WASM_BINARY: Option<&[u8]> = None;pub const WASM_BINARY_BLOATY: Option<&[u8]> = None;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L116
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:116:3
|
116 | IsmpPostResponseReceived { dest: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for the crate:
integration-tests/src/lib.rs#L1
warning: missing documentation for the crate
--> integration-tests/src/lib.rs:1:1
|
1 | / #![cfg(test)]
2 | |
3 | | use asset_hub_paseo_runtime::xcm_config::XcmConfig as AssetHubPaseoXcmConfig;
4 | | use asset_test_utils::xcm_helpers;
... |
597 | | });
598 | | }
| |_^
|
= note: requested on the command line with `-W missing-docs`
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L115
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:115:46
|
115 | IsmpPostDispatched { origin: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L115
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:115:24
|
115 | IsmpPostDispatched { origin: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^^^^
|
you are using an explicit closure for cloning elements:
pallets/revive/proc-macro/src/lib.rs#L576
warning: you are using an explicit closure for cloning elements
--> pallets/revive/proc-macro/src/lib.rs:576:17
|
576 | sig.inputs = sig
| __________________________^
577 | | .inputs
578 | | .iter()
579 | | .skip(2)
580 | | .map(|p| p.clone())
| |___________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
= note: `#[warn(clippy::map_clone)]` on by default
help: consider calling the dedicated `cloned` method
|
576 ~ sig.inputs = sig
577 ~ .inputs
578 ~ .iter()
579 ~ .skip(2).cloned()
|
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L115
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:115:3
|
115 | IsmpPostDispatched { origin: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^^
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L317
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:317:23
|
317 | _ => Err(err(span, &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L114
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:114:49
|
114 | IsmpGetResponseReceived { dest: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L314
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:314:25
|
314 | _ => Err(err(span, &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L114
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:114:29
|
114 | IsmpGetResponseReceived { dest: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^^
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L309
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:309:34
|
309 | ... _ => Err(err(arg1.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L114
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:114:3
|
114 | IsmpGetResponseReceived { dest: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^^^^^^^
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L303
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:303:35
|
303 | ... _ => Err(err(ok_ty.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L113
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:113:45
|
113 | IsmpGetDispatched { origin: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L299
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:299:38
|
299 | ... return Err(err(arg1.span(), &msg))
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a struct field:
pallets/api/src/messaging/mod.rs#L113
warning: missing documentation for a struct field
--> pallets/api/src/messaging/mod.rs:113:23
|
113 | IsmpGetDispatched { origin: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^^^^
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L294
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:294:33
|
294 | ... .ok_or(err(arg1.span(), &msg))?
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L113
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:113:3
|
113 | IsmpGetDispatched { origin: T::AccountId, id: MessageId },
| ^^^^^^^^^^^^^^^^^
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L287
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:287:34
|
287 | ... _ => Err(err(arg1.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for an associated type:
pallets/api/src/messaging/mod.rs#L84
warning: missing documentation for an associated type
--> pallets/api/src/messaging/mod.rs:84:3
|
84 | type Xcm: QueryHandler<BlockNumber = BlockNumberOf<Self>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated type:
pallets/api/src/messaging/mod.rs#L79
warning: missing documentation for an associated type
--> pallets/api/src/messaging/mod.rs:79:3
|
79 | type MaxRemovals: Get<u32>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L284
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:284:53
|
284 | let arg1 = group.args.first().ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
missing documentation for an associated type:
pallets/api/src/messaging/mod.rs#L77
warning: missing documentation for an associated type
--> pallets/api/src/messaging/mod.rs:77:3
|
77 | type MaxResponseLen: Get<u32>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated type:
pallets/api/src/messaging/mod.rs#L74
warning: missing documentation for an associated type
--> pallets/api/src/messaging/mod.rs:74:3
|
74 | type MaxKeyLen: Get<u32>;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated type:
pallets/api/src/messaging/mod.rs#L72
warning: missing documentation for an associated type
--> pallets/api/src/messaging/mod.rs:72:3
|
72 | type MaxKeys: Get<u32>;
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated type:
pallets/api/src/messaging/mod.rs#L59
warning: missing documentation for an associated type
--> pallets/api/src/messaging/mod.rs:59:3
|
59 | type IsmpByteFee: Get<BalanceOf<Self>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated type:
pallets/api/src/messaging/mod.rs#L52
warning: missing documentation for an associated type
--> pallets/api/src/messaging/mod.rs:52:3
|
52 | type ByteFee: Get<BalanceOf<Self>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated type:
pallets/api/src/messaging/mod.rs#L49
warning: missing documentation for an associated type
--> pallets/api/src/messaging/mod.rs:49:3
|
49 | type OriginConverter: TryConvert<Self::RuntimeOrigin, Location>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/api/src/messaging/transports/ismp.rs#L129
warning: missing documentation for an associated function
--> pallets/api/src/messaging/transports/ismp.rs:129:2
|
129 | pub fn new() -> Self {
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
pallets/api/src/messaging/transports/ismp.rs#L127
warning: missing documentation for a struct
--> pallets/api/src/messaging/transports/ismp.rs:127:1
|
127 | pub struct Handler<T>(PhantomData<T>);
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
pallets/api/src/messaging/transports/ismp.rs#L95
warning: missing documentation for a struct
--> pallets/api/src/messaging/transports/ismp.rs:95:1
|
95 | pub struct Post<T: Config> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
pallets/api/src/messaging/transports/ismp.rs#L54
warning: missing documentation for a struct
--> pallets/api/src/messaging/transports/ismp.rs:54:1
|
54 | pub struct Get<T: Config> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/transports/ismp.rs#L40
warning: missing documentation for a variant
--> pallets/api/src/messaging/transports/ismp.rs:40:2
|
40 | Post(Post<T>),
| ^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/transports/ismp.rs#L39
warning: missing documentation for a variant
--> pallets/api/src/messaging/transports/ismp.rs:39:2
|
39 | Get(Get<T>),
| ^^^
|
missing documentation for an enum:
pallets/api/src/messaging/transports/ismp.rs#L38
warning: missing documentation for an enum
--> pallets/api/src/messaging/transports/ismp.rs:38:1
|
38 | pub enum Message<T: Config> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/api/src/messaging/transports/ismp.rs#L32
warning: missing documentation for a constant
--> pallets/api/src/messaging/transports/ismp.rs:32:1
|
32 | pub const ID: [u8; 3] = *b"pop";
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/api/src/messaging/mod.rs#L333
warning: missing documentation for a method
--> pallets/api/src/messaging/mod.rs:333:2
|
333 | pub fn encode(&self) -> Vec<u8> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L329
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:329:2
|
329 | QueryId(Option<QueryId>),
| ^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L328
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:328:2
|
328 | Get(Option<Vec<u8>>),
| ^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L327
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:327:2
|
327 | Poll(Option<Status>),
| ^^^^
|
missing documentation for an enum:
pallets/api/src/messaging/mod.rs#L326
warning: missing documentation for an enum
--> pallets/api/src/messaging/mod.rs:326:1
|
326 | pub enum ReadResult {
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L321
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:321:2
|
321 | QueryId((T::AccountId, MessageId)),
| ^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L319
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:319:2
|
319 | Get((T::AccountId, MessageId)),
| ^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L317
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:317:2
|
317 | Poll((T::AccountId, MessageId)),
| ^^^^
|
missing documentation for an enum:
pallets/api/src/messaging/mod.rs#L315
warning: missing documentation for an enum
--> pallets/api/src/messaging/mod.rs:315:1
|
315 | pub enum Read<T: Config> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L308
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:308:2
|
308 | Complete,
| ^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L307
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:307:2
|
307 | TimedOut,
| ^^^^^^^^
|
missing documentation for a variant:
pallets/api/src/messaging/mod.rs#L306
warning: missing documentation for a variant
--> pallets/api/src/messaging/mod.rs:306:2
|
306 | Pending,
| ^^^^^^^
|
missing documentation for an enum:
pallets/api/src/messaging/mod.rs#L305
warning: missing documentation for an enum
--> pallets/api/src/messaging/mod.rs:305:1
|
305 | pub enum Status {
| ^^^^^^^^^^^^^^^
|
missing documentation for a module:
pallets/api/src/lib.rs#L6
warning: missing documentation for a module
--> pallets/api/src/lib.rs:6:1
|
6 | pub mod extension;
| ^^^^^^^^^^^^^^^^^
|
missing documentation for the crate:
pallets/api/src/lib.rs#L1
warning: missing documentation for the crate
--> pallets/api/src/lib.rs:1:1
|
1 | / #![cfg_attr(not(feature = "std"), no_std)]
2 | |
3 | | pub use extension::Extension;
4 | | use frame_support::pallet_prelude::Weight;
... |
31 | | fn read(request: Self::Read) -> Self::Result;
32 | | }
| |_^
|
= note: requested on the command line with `-W missing-docs`
|
large size difference between variants:
pallets/api/src/messaging/mod.rs#L139
warning: large size difference between variants
--> pallets/api/src/messaging/mod.rs:139:12
|
139 | #[pallet::call]
| -^^^
| |
| ________________the entire enum is at least 664 bytes
| | _______________|
| ||
140 | || impl<T: Config> Pallet<T> {
141 | || #[pallet::call_index(0)]
142 | || #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
... ||
151 | || #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
152 | || pub fn ismp_get(
| ||_______________________- the second-largest variant contains at least 72 bytes
... |
208 | | #[pallet::weight(Weight::zero())] // todo: benchmarking after consolidating storage
209 | | pub fn xcm_new_query(
| |_____________________________- the largest variant contains at least 664 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
|
212 | responder: Box<VersionedLocation>,
| ~~~~~~~~~~~~~~~~~~~~~~
|
the borrowed expression implements the required traits:
pallets/api/src/messaging/mod.rs#L232
warning: the borrowed expression implements the required traits
--> pallets/api/src/messaging/mod.rs:232:28
|
232 | XcmQueries::<T>::insert(&query_id, (&origin, id));
| ^^^^^^^^^ help: change this to: `query_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/api/src/messaging/mod.rs#L222
warning: the borrowed expression implements the required traits
--> pallets/api/src/messaging/mod.rs:222:50
|
222 | ensure!(!Messages::<T>::contains_key(&origin, &id), Error::<T>::MessageExists);
| ^^^ help: change this to: `id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/api/src/messaging/mod.rs#L201
warning: the borrowed expression implements the required traits
--> pallets/api/src/messaging/mod.rs:201:30
|
201 | IsmpRequests::<T>::insert(&commitment, (&origin, id));
| ^^^^^^^^^^^ help: change this to: `commitment`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/api/src/messaging/mod.rs#L194
warning: the borrowed expression implements the required traits
--> pallets/api/src/messaging/mod.rs:194:50
|
194 | ensure!(!Messages::<T>::contains_key(&origin, &id), Error::<T>::MessageExists);
| ^^^ help: change this to: `id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/api/src/messaging/mod.rs#L172
warning: the borrowed expression implements the required traits
--> pallets/api/src/messaging/mod.rs:172:30
|
172 | IsmpRequests::<T>::insert(&commitment, (&origin, id));
| ^^^^^^^^^^^ help: change this to: `commitment`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/api/src/messaging/mod.rs#L165
warning: the borrowed expression implements the required traits
--> pallets/api/src/messaging/mod.rs:165:50
|
165 | ensure!(!Messages::<T>::contains_key(&origin, &id), Error::<T>::MessageExists);
| ^^^ help: change this to: `id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/api/src/messaging/transports/xcm.rs#L33
warning: the borrowed expression implements the required traits
--> pallets/api/src/messaging/transports/xcm.rs:33:34
|
33 | Messages::<T>::mutate(&origin, &id, |message| {
| ^^^ help: change this to: `id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/api/src/messaging/transports/ismp.rs#L168
warning: the borrowed expression implements the required traits
--> pallets/api/src/messaging/transports/ismp.rs:168:38
|
168 | Messages::<T>::try_mutate(&origin, &id, |message| {
| ^^^ help: change this to: `id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
you should consider adding a `Default` implementation for `Handler<T>`:
pallets/api/src/messaging/transports/ismp.rs#L129
warning: you should consider adding a `Default` implementation for `Handler<T>`
--> pallets/api/src/messaging/transports/ismp.rs:129:2
|
129 | / pub fn new() -> Self {
130 | | Self(PhantomData)
131 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
128 + impl<T> Default for Handler<T> {
129 + fn default() -> Self {
130 + Self::new()
131 + }
132 + }
|
|
missing documentation for an associated function:
pallets/incentives/src/lib.rs#L315
warning: missing documentation for an associated function
--> pallets/incentives/src/lib.rs:315:3
|
315 | pub fn accrue_fees(now: BlockNumberFor<T>, contract: &AccountIdOf<T>, fees: BalanceOf<T>) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/incentives/src/lib.rs#L309
warning: missing documentation for an associated function
--> pallets/incentives/src/lib.rs:309:3
|
309 | pub fn is_registered(account: &T::AccountId) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/incentives/src/lib.rs#L300
warning: missing documentation for an associated function
--> pallets/incentives/src/lib.rs:300:3
|
300 | pub fn update_incentives(amount: BalanceOf<T>) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/incentives/src/lib.rs#L124
warning: missing documentation for a struct field
--> pallets/incentives/src/lib.rs:124:3
|
124 | pub _config: PhantomData<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/incentives/src/lib.rs#L122
warning: missing documentation for a struct field
--> pallets/incentives/src/lib.rs:122:3
|
122 | pub starting_era: EraNumber,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/incentives/src/lib.rs#L104
warning: missing documentation for a struct field
--> pallets/incentives/src/lib.rs:104:4
|
104 | amount: BalanceOf<T>,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a type alias:
pallets/incentives/src/types.rs#L8
warning: missing documentation for a type alias
--> pallets/incentives/src/types.rs:8:1
|
8 | pub type AccountIdOf<T> = <T as frame_system::Config>::AccountId;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a module:
pallets/incentives/src/lib.rs#L7
warning: missing documentation for a module
--> pallets/incentives/src/lib.rs:7:1
|
7 | pub mod types;
| ^^^^^^^^^^^^^
|
missing documentation for a module:
pallets/incentives/src/lib.rs#L6
warning: missing documentation for a module
--> pallets/incentives/src/lib.rs:6:1
|
6 | pub mod contract_fee_handler;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for the crate:
pallets/incentives/src/lib.rs#L1
warning: missing documentation for the crate
--> pallets/incentives/src/lib.rs:1:1
|
1 | / #![cfg_attr(not(feature = "std"), no_std)]
2 | |
3 | | // Re-export pallet items so that they can be accessed from the crate namespace.
4 | | pub use pallet::*;
... |
326 | | }
327 | | }
| |_^
|
= note: requested on the command line with `-W missing-docs`
|
missing documentation for the crate:
node/build.rs#L1
warning: missing documentation for the crate
--> node/build.rs:1:1
|
1 | / use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed};
2 | |
3 | | fn main() {
4 | | generate_cargo_keys();
5 | |
6 | | rerun_if_git_head_changed();
7 | | }
| |_^
|
= note: requested on the command line with `-W missing-docs`
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L623
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:623:4
|
623 | value: BoundedVec<u8, T::ValueLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L622
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:622:4
|
622 | attribute: PalletAttributes<T::CollectionId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L621
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:621:4
|
621 | item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L615
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:615:4
|
615 | namespace: AttributeNamespace<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L614
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:614:4
|
614 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L613
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:613:4
|
613 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L609
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:609:4
|
609 | deadline: BlockNumberFor<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L608
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:608:4
|
608 | price: Option<PriceWithDirection<ItemPrice<T, I>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L607
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:607:4
|
607 | received_item_owner: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L606
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:606:4
|
606 | received_item: T::ItemId,
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L605
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:605:4
|
605 | received_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L604
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:604:4
|
604 | sent_item_owner: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L603
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:603:4
|
603 | sent_item: T::ItemId,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L602
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:602:4
|
602 | sent_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L598
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:598:4
|
598 | deadline: BlockNumberFor<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L597
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:597:4
|
597 | price: Option<PriceWithDirection<ItemPrice<T, I>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L596
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:596:4
|
596 | desired_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L595
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:595:4
|
595 | desired_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L594
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:594:4
|
594 | offered_item: T::ItemId,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L593
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:593:4
|
593 | offered_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L589
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:589:4
|
589 | deadline: BlockNumberFor<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L588
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:588:4
|
588 | price: Option<PriceWithDirection<ItemPrice<T, I>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L587
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:587:4
|
587 | desired_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L586
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:586:4
|
586 | desired_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L585
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:585:4
|
585 | offered_item: T::ItemId,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L584
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:584:4
|
584 | offered_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L580
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:580:4
|
580 | amount: DepositBalanceOf<T, I>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L579
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:579:4
|
579 | receiver: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L578
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:578:4
|
578 | sender: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L577
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:577:4
|
577 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L576
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:576:4
|
576 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L572
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:572:4
|
572 | buyer: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L571
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:571:4
|
571 | seller: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L570
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:570:4
|
570 | price: ItemPrice<T, I>,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L569
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:569:4
|
569 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L568
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:568:4
|
568 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L565
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:565:51
|
565 | ItemPriceRemoved { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L565
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:565:22
|
565 | ItemPriceRemoved { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L562
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:562:4
|
562 | whitelisted_buyer: Option<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L561
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:561:4
|
561 | price: ItemPrice<T, I>,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L560
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:560:4
|
560 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L559
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:559:4
|
559 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L556
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:556:33
|
556 | NextCollectionIdIncremented { next_id: Option<T::CollectionId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L554
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:554:35
|
554 | CollectionMintSettingsUpdated { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L552
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:552:57
|
552 | CollectionMaxSupplySet { collection: T::CollectionId, max_supply: u32 },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L552
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:552:28
|
552 | CollectionMaxSupplySet { collection: T::CollectionId, max_supply: u32 },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L550
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:550:51
|
550 | OwnershipAcceptanceChanged { who: T::AccountId, maybe_collection: Option<T::CollectionId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L550
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:550:32
|
550 | OwnershipAcceptanceChanged { who: T::AccountId, maybe_collection: Option<T::CollectionId> },
| ^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L547
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:547:4
|
547 | delegate: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L546
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:546:4
|
546 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L545
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:545:4
|
545 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L541
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:541:4
|
541 | delegate: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L540
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:540:4
|
540 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L539
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:539:4
|
539 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L535
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:535:4
|
535 | namespace: AttributeNamespace<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L534
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:534:4
|
534 | key: BoundedVec<u8, T::KeyLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L533
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:533:4
|
533 | maybe_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L532
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:532:4
|
532 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L528
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:528:4
|
528 | namespace: AttributeNamespace<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L527
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:527:4
|
527 | value: BoundedVec<u8, T::ValueLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L526
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:526:4
|
526 | key: BoundedVec<u8, T::KeyLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L525
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:525:4
|
525 | maybe_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L521
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:521:46
|
521 | Redeposited { collection: T::CollectionId, successful_items: Vec<T::ItemId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L521
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:521:17
|
521 | Redeposited { collection: T::CollectionId, successful_items: Vec<T::ItemId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L519
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:519:54
|
519 | ItemMetadataCleared { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L519
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:519:25
|
519 | ItemMetadataCleared { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L516
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:516:4
|
516 | data: BoundedVec<u8, T::StringLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L515
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:515:4
|
515 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L514
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:514:4
|
514 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L511
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:511:31
|
511 | CollectionMetadataCleared { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L509
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:509:56
|
509 | CollectionMetadataSet { collection: T::CollectionId, data: BoundedVec<u8, T::StringLimit> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L509
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:509:27
|
509 | CollectionMetadataSet { collection: T::CollectionId, data: BoundedVec<u8, T::StringLimit> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L507
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:507:29
|
507 | CollectionConfigChanged { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L505
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:505:73
|
505 | AllApprovalsCancelled { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L505
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:505:56
|
505 | AllApprovalsCancelled { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L505
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:505:27
|
505 | AllApprovalsCancelled { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L502
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:502:4
|
502 | delegate: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L501
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:501:4
|
501 | owner: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L500
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:500:4
|
500 | item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L499
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:499:4
|
499 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L494
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:494:4
|
494 | deadline: Option<BlockNumberFor<T>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L493
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:493:4
|
493 | delegate: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L492
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:492:4
|
492 | owner: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L491
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:491:4
|
491 | item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L490
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:490:4
|
490 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L485
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:485:4
|
485 | freezer: Option<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L484
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:484:4
|
484 | admin: Option<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L483
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:483:4
|
483 | issuer: Option<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L482
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:482:4
|
482 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L479
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:479:47
|
479 | OwnerChanged { collection: T::CollectionId, new_owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L479
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:479:18
|
479 | OwnerChanged { collection: T::CollectionId, new_owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L477
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:477:22
|
477 | CollectionLocked { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L474
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:474:4
|
474 | lock_attributes: bool,
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L473
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:473:4
|
473 | lock_metadata: bool,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L472
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:472:4
|
472 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L471
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:471:4
|
471 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L468
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:468:55
|
468 | ItemTransferUnlocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L468
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:468:26
|
468 | ItemTransferUnlocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L466
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:466:53
|
466 | ItemTransferLocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L466
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:466:24
|
466 | ItemTransferLocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L464
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:464:58
|
464 | Burned { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L464
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:464:41
|
464 | Burned { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L464
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:464:12
|
464 | Burned { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L461
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:461:4
|
461 | to: T::AccountId,
| ^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L460
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:460:4
|
460 | from: T::AccountId,
| ^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L459
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:459:4
|
459 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L458
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:458:4
|
458 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L455
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:455:58
|
455 | Issued { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L455
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:455:41
|
455 | Issued { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L455
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:455:12
|
455 | Issued { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L453
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:453:15
|
453 | Destroyed { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L451
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:451:47
|
451 | ForceCreated { collection: T::CollectionId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L451
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:451:18
|
451 | ForceCreated { collection: T::CollectionId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L449
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:449:65
|
449 | Created { collection: T::CollectionId, creator: T::AccountId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L449
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:449:42
|
449 | Created { collection: T::CollectionId, creator: T::AccountId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L449
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:449:13
|
449 | Created { collection: T::CollectionId, creator: T::AccountId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/lib.rs#L94
warning: missing documentation for an associated function
--> pallets/nfts/src/lib.rs:94:3
|
94 | fn sign(signer: &Public, message: &[u8]) -> Signature;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/lib.rs#L93
warning: missing documentation for an associated function
--> pallets/nfts/src/lib.rs:93:3
|
93 | fn signer() -> (Public, AccountId);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/lib.rs#L92
warning: missing documentation for an associated function
--> pallets/nfts/src/lib.rs:92:3
|
92 | fn item(i: u16) -> ItemId;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/lib.rs#L91
warning: missing documentation for an associated function
--> pallets/nfts/src/lib.rs:91:3
|
91 | fn collection(i: u16) -> CollectionId;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a trait:
pallets/nfts/src/lib.rs#L90
warning: missing documentation for a trait
--> pallets/nfts/src/lib.rs:90:2
|
90 | pub trait BenchmarkHelper<CollectionId, ItemId, Public, AccountId, Signature> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
pallets/nfts/src/types.rs#L557
warning: missing documentation for a struct
--> pallets/nfts/src/types.rs:557:1
|
557 | pub struct PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
pallets/nfts/src/types.rs#L539
warning: missing documentation for a struct
--> pallets/nfts/src/types.rs:539:1
|
539 | pub struct PreSignedMint<CollectionId, ItemId, AccountId, Deadline, Balance> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/types.rs#L531
warning: missing documentation for an associated function
--> pallets/nfts/src/types.rs:531:2
|
531 | pub fn max_roles() -> u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L527
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:527:2
|
527 | pub fn add_role(&mut self, role: CollectionRole) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L523
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:523:2
|
523 | pub fn has_role(&self, role: CollectionRole) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/types.rs#L519
warning: missing documentation for an associated function
--> pallets/nfts/src/types.rs:519:2
|
519 | pub fn none() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L495
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:495:2
|
495 | pub fn is_enabled(&self, feature: PalletFeature) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/types.rs#L491
warning: missing documentation for an associated function
--> pallets/nfts/src/types.rs:491:2
|
491 | pub fn from_disabled(features: BitFlags<PalletFeature>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/types.rs#L487
warning: missing documentation for an associated function
--> pallets/nfts/src/types.rs:487:2
|
487 | pub fn all_enabled() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L462
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:462:2
|
462 | pub fn disable_setting(&mut self, setting: ItemSetting) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L458
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:458:2
|
458 | pub fn enable_setting(&mut self, setting: ItemSetting) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L454
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:454:2
|
454 | pub fn has_disabled_settings(&self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L450
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:450:2
|
450 | pub fn has_disabled_setting(&self, setting: ItemSetting) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L446
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:446:2
|
446 | pub fn is_setting_enabled(&self, setting: ItemSetting) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/types.rs#L429
warning: missing documentation for an associated function
--> pallets/nfts/src/types.rs:429:2
|
429 | pub fn from_disabled(settings: BitFlags<ItemSetting>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L425
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:425:2
|
425 | pub fn is_disabled(&self, setting: ItemSetting) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L421
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:421:2
|
421 | pub fn get_disabled(&self) -> BitFlags<ItemSetting> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/types.rs#L417
warning: missing documentation for an associated function
--> pallets/nfts/src/types.rs:417:2
|
417 | pub fn all_enabled() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L394
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:394:2
|
394 | pub fn disable_setting(&mut self, setting: CollectionSetting) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L390
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:390:2
|
390 | pub fn enable_setting(&mut self, setting: CollectionSetting) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L386
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:386:2
|
386 | pub fn has_disabled_setting(&self, setting: CollectionSetting) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L382
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:382:2
|
382 | pub fn is_setting_enabled(&self, setting: CollectionSetting) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/types.rs#L290
warning: missing documentation for an associated function
--> pallets/nfts/src/types.rs:290:2
|
290 | pub fn from_disabled(settings: BitFlags<CollectionSetting>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L286
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:286:2
|
286 | pub fn is_disabled(&self, setting: CollectionSetting) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L282
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:282:2
|
282 | pub fn get_disabled(&self) -> BitFlags<CollectionSetting> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/types.rs#L278
warning: missing documentation for an associated function
--> pallets/nfts/src/types.rs:278:2
|
278 | pub fn all_enabled() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/nfts/src/types.rs#L126
warning: missing documentation for a method
--> pallets/nfts/src/types.rs:126:2
|
126 | pub fn destroy_witness(&self) -> DestroyWitness {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated function:
pallets/nfts/src/features/approvals.rs#L226
warning: missing documentation for an associated function
--> pallets/nfts/src/features/approvals.rs:226:2
|
226 | / pub fn check_allowance(
227 | | collection: &T::CollectionId,
228 | | item: &Option<T::ItemId>,
229 | | owner: &T::AccountId,
230 | | delegate: &T::AccountId,
231 | | ) -> Result<(), DispatchError> {
| |__________________________________^
|
missing documentation for an associated function:
pallets/nfts/src/common_functions.rs#L86
warning: missing documentation for an associated function
--> pallets/nfts/src/common_functions.rs:86:2
|
86 | pub fn set_next_id(id: T::CollectionId) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/migration.rs#L36
warning: missing documentation for a struct field
--> pallets/nfts/src/migration.rs:36:3
|
36 | pub attributes: u32,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/migration.rs#L35
warning: missing documentation for a struct field
--> pallets/nfts/src/migration.rs:35:3
|
35 | pub item_metadatas: u32,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/migration.rs#L34
warning: missing documentation for a struct field
--> pallets/nfts/src/migration.rs:34:3
|
34 | pub items: u32,
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/migration.rs#L33
warning: missing documentation for a struct field
--> pallets/nfts/src/migration.rs:33:3
|
33 | pub owner_deposit: DepositBalance,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/migration.rs#L32
warning: missing documentation for a struct field
--> pallets/nfts/src/migration.rs:32:3
|
32 | pub owner: AccountId,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
pallets/nfts/src/migration.rs#L31
warning: missing documentation for a struct
--> pallets/nfts/src/migration.rs:31:2
|
31 | pub struct OldCollectionDetails<AccountId, DepositBalance> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a module:
pallets/nfts/src/migration.rs#L25
warning: missing documentation for a module
--> pallets/nfts/src/migration.rs:25:1
|
25 | pub mod v1 {
| ^^^^^^^^^^
|
missing documentation for a module:
pallets/nfts/src/lib.rs#L48
warning: missing documentation for a module
--> pallets/nfts/src/lib.rs:48:1
|
48 | pub mod macros;
| ^^^^^^^^^^^^^^
|
missing documentation for a module:
pallets/nfts/src/lib.rs#L33
warning: missing documentation for a module
--> pallets/nfts/src/lib.rs:33:1
|
33 | pub mod migration;
| ^^^^^^^^^^^^^^^^^
|
= note: requested on the command line with `-W missing-docs`
|
the borrowed expression implements the required traits:
pallets/nfts/src/lib.rs#L1122
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1122:39
|
1122 | Item::<T, I>::insert(&collection, &item, &details);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/lib.rs#L1122
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1122:26
|
1122 | Item::<T, I>::insert(&collection, &item, &details);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
`if` chain can be rewritten with `match`:
pallets/nfts/src/lib.rs#L1110
warning: `if` chain can be rewritten with `match`
--> pallets/nfts/src/lib.rs:1110:5
|
1110 | / if old > deposit {
1111 | | T::Currency::unreserve(&details.deposit.account, old - deposit);
1112 | | } else if deposit > old {
1113 | | if T::Currency::reserve(&details.deposit.account, deposit - old).is_err() {
... |
1119 | | continue;
1120 | | }
| |_________________^
|
= help: consider rewriting the `if` chain to use `cmp` and `match`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
|
the borrowed expression implements the required traits:
pallets/nfts/src/lib.rs#L1105
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1105:60
|
1105 | let mut details = match Item::<T, I>::get(&collection, &item) {
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/lib.rs#L1105
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1105:47
|
1105 | let mut details = match Item::<T, I>::get(&collection, &item) {
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/lib.rs#L1094
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1094:29
|
1094 | Collection::<T, I>::get(&collection).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/impl_nonfungibles.rs#L424
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/impl_nonfungibles.rs:424:44
|
424 | Self::has_system_attribute(&collection, &item, PalletAttributes::TransferDisabled)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/impl_nonfungibles.rs#L424
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/impl_nonfungibles.rs:424:31
|
424 | Self::has_system_attribute(&collection, &item, PalletAttributes::TransferDisabled)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
match expression looks like `matches!` macro:
pallets/nfts/src/impl_nonfungibles.rs#L127
warning: match expression looks like `matches!` macro
--> pallets/nfts/src/impl_nonfungibles.rs:127:3
|
127 | / match (
128 | | CollectionConfigOf::<T, I>::get(collection),
129 | | ItemConfigOf::<T, I>::get(collection, item),
130 | | ) {
... |
135 | | _ => false,
136 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
= note: `#[warn(clippy::match_like_matches_macro)]` on by default
help: try
|
127 ~ matches!((
128 ~ CollectionConfigOf::<T, I>::get(collection),
129 ~ ItemConfigOf::<T, I>::get(collection, item),
130 ~ ), (Some(cc), Some(ic)) if cc.is_setting_enabled(CollectionSetting::TransferableItems) &&
131 ~ ic.is_setting_enabled(ItemSetting::Transferable))
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/impl_nonfungibles.rs#L123
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/impl_nonfungibles.rs:123:49
|
123 | match Self::has_system_attribute(&collection, &item, TransferDisabled) {
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/impl_nonfungibles.rs#L123
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/impl_nonfungibles.rs:123:36
|
123 | match Self::has_system_attribute(&collection, &item, TransferDisabled) {
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L236
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:236:46
|
236 | CollectionAccount::<T, I>::insert(&owner, &collection, ());
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L235
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:235:54
|
235 | CollectionAccount::<T, I>::remove(&details.owner, &collection);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L161
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:161:50
|
161 | CollectionAccount::<T, I>::insert(&new_owner, &collection, ());
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L160
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:160:54
|
160 | CollectionAccount::<T, I>::remove(&details.owner, &collection);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L112
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:112:46
|
112 | PendingSwapOf::<T, I>::remove(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L112
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:112:33
|
112 | PendingSwapOf::<T, I>::remove(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L111
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:111:44
|
111 | ItemPriceOf::<T, I>::remove(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L111
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:111:31
|
111 | ItemPriceOf::<T, I>::remove(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L110
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:110:37
|
110 | Item::<T, I>::insert(&collection, &item, &details);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L110
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:110:24
|
110 | Item::<T, I>::insert(&collection, &item, &details);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L85
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:85:35
|
85 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L85
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:85:22
|
85 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/transfer.rs#L58
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:58:28
|
58 | Collection::<T, I>::get(&collection).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
unneeded `return` statement:
pallets/nfts/src/features/settings.rs#L177
warning: unneeded `return` statement
--> pallets/nfts/src/features/settings.rs:177:3
|
177 | return features.is_enabled(feature)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
177 | features.is_enabled(feature)
|
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/settings.rs#L148
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/settings.rs:148:58
|
148 | let config = ItemConfigOf::<T, I>::get(&collection_id, &item_id)
| ^^^^^^^^ help: change this to: `item_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/settings.rs#L148
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/settings.rs:148:42
|
148 | let config = ItemConfigOf::<T, I>::get(&collection_id, &item_id)
| ^^^^^^^^^^^^^^ help: change this to: `collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/settings.rs#L132
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/settings.rs:132:36
|
132 | CollectionConfigOf::<T, I>::get(&collection_id).ok_or(Error::<T, I>::NoConfig)?;
| ^^^^^^^^^^^^^^ help: change this to: `collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/settings.rs#L108
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/settings.rs:108:33
|
108 | Self::has_role(&collection, &check_origin, CollectionRole::Issuer),
| ^^^^^^^^^^^^^ help: change this to: `check_origin`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/settings.rs#L70
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/settings.rs:70:28
|
70 | Collection::<T, I>::get(&collection).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/settings.rs#L37
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/settings.rs:37:38
|
37 | CollectionConfigOf::<T, I>::insert(&collection, config);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/settings.rs#L36
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/settings.rs:36:44
|
36 | ensure!(Collection::<T, I>::contains_key(&collection), Error::<T, I>::UnknownCollection);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/roles.rs#L135
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/roles.rs:135:41
|
135 | CollectionRoleOf::<T, I>::iter_prefix(&collection_id).into_iter().find_map(
| ^^^^^^^^^^^^^^ help: change this to: `collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
useless conversion to the same type: `frame_support::storage::PrefixIterator<(<T as frame_system::Config>::AccountId, types::CollectionRoles)>`:
pallets/nfts/src/features/roles.rs#L135
warning: useless conversion to the same type: `frame_support::storage::PrefixIterator<(<T as frame_system::Config>::AccountId, types::CollectionRoles)>`
--> pallets/nfts/src/features/roles.rs:135:3
|
135 | CollectionRoleOf::<T, I>::iter_prefix(&collection_id).into_iter().find_map(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `CollectionRoleOf::<T, I>::iter_prefix(&collection_id)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/roles.rs#L121
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/roles.rs:121:49
|
121 | CollectionRoleOf::<T, I>::get(&collection_id, &account_id)
| ^^^^^^^^^^^ help: change this to: `account_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/roles.rs#L121
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/roles.rs:121:33
|
121 | CollectionRoleOf::<T, I>::get(&collection_id, &account_id)
| ^^^^^^^^^^^^^^ help: change this to: `collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/roles.rs#L101
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/roles.rs:101:4
|
101 | &collection_id,
| ^^^^^^^^^^^^^^ help: change this to: `collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/roles.rs#L84
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/roles.rs:84:38
|
84 | CollectionRoleOf::<T, I>::insert(&collection, &account, roles);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
missing documentation for the crate:
runtime/devnet/build.rs#L1
warning: missing documentation for the crate
--> runtime/devnet/build.rs:1:1
|
1 | / #[cfg(all(feature = "std", feature = "metadata-hash"))]
2 | | fn main() {
3 | | substrate_wasm_builder::WasmBuilder::init_with_defaults()
4 | | .enable_metadata_hash("PAS", 10)
... |
15 | | #[cfg(not(feature = "std"))]
16 | | fn main() {}
| |____________^
|
= note: requested on the command line with `-W missing-docs`
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/metadata.rs#L267
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/metadata.rs:267:31
|
267 | Collection::<T, I>::insert(&collection, details);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/metadata.rs#L254
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/metadata.rs:254:28
|
254 | Collection::<T, I>::get(&collection).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/metadata.rs#L248
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/metadata.rs:248:33
|
248 | Self::has_role(&collection, &check_origin, CollectionRole::Admin),
| ^^^^^^^^^^^^^ help: change this to: `check_origin`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/metadata.rs#L220
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/metadata.rs:220:31
|
220 | Collection::<T, I>::insert(&collection, details);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
`if` chain can be rewritten with `match`:
pallets/nfts/src/features/metadata.rs#L213
warning: `if` chain can be rewritten with `match`
--> pallets/nfts/src/features/metadata.rs:213:4
|
213 | / if deposit > old_deposit {
214 | | T::Currency::reserve(&details.owner, deposit - old_deposit)?;
215 | | } else if deposit < old_deposit {
216 | | T::Currency::unreserve(&details.owner, old_deposit - deposit);
217 | | }
| |_____________^
|
= help: consider rewriting the `if` chain to use `cmp` and `match`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
= note: `#[warn(clippy::comparison_chain)]` on by default
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/metadata.rs#L201
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/metadata.rs:201:28
|
201 | Collection::<T, I>::get(&collection).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/metadata.rs#L188
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/metadata.rs:188:33
|
188 | Self::has_role(&collection, &check_origin, CollectionRole::Admin),
| ^^^^^^^^^^^^^ help: change this to: `check_origin`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/metadata.rs#L162
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/metadata.rs:162:30
|
162 | Collection::<T, I>::insert(&collection, &collection_details);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/metadata.rs#L144
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/metadata.rs:144:28
|
144 | Collection::<T, I>::get(&collection).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/metadata.rs#L135
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/metadata.rs:135:33
|
135 | Self::has_role(&collection, &check_origin, CollectionRole::Admin),
| ^^^^^^^^^^^^^ help: change this to: `check_origin`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/metadata.rs#L109
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/metadata.rs:109:31
|
109 | Collection::<T, I>::insert(&collection, &collection_details);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/metadata.rs#L60
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/metadata.rs:60:28
|
60 | Collection::<T, I>::get(&collection).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/metadata.rs#L53
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/metadata.rs:53:33
|
53 | Self::has_role(&collection, &check_origin, CollectionRole::Admin),
| ^^^^^^^^^^^^^ help: change this to: `check_origin`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/lock.rs#L143
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/lock.rs:143:33
|
143 | Self::has_role(&collection, &check_origin, CollectionRole::Admin),
| ^^^^^^^^^^^^^ help: change this to: `check_origin`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/lock.rs#L113
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/lock.rs:113:45
|
113 | ItemConfigOf::<T, I>::insert(&collection, &item, config);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/lock.rs#L113
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/lock.rs:113:32
|
113 | ItemConfigOf::<T, I>::insert(&collection, &item, config);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/lock.rs#L83
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/lock.rs:83:45
|
83 | ItemConfigOf::<T, I>::insert(&collection, &item, config);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/lock.rs#L83
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/lock.rs:83:32
|
83 | ItemConfigOf::<T, I>::insert(&collection, &item, config);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L274
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:274:46
|
274 | ItemConfigOf::<T, I>::remove(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L274
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:274:33
|
274 | ItemConfigOf::<T, I>::remove(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L268
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:268:58
|
268 | ItemAttributesApprovalsOf::<T, I>::remove(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L268
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:268:45
|
268 | ItemAttributesApprovalsOf::<T, I>::remove(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L267
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:267:46
|
267 | PendingSwapOf::<T, I>::remove(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L267
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:267:33
|
267 | PendingSwapOf::<T, I>::remove(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L266
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:266:44
|
266 | ItemPriceOf::<T, I>::remove(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L266
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:266:31
|
266 | ItemPriceOf::<T, I>::remove(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L264
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:264:37
|
264 | Item::<T, I>::remove(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L264
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:264:24
|
264 | Item::<T, I>::remove(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L245
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:245:72
|
245 | if let Some(metadata) = ItemMetadataOf::<T, I>::take(&collection, &item) {
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L245
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:245:59
|
245 | if let Some(metadata) = ItemMetadataOf::<T, I>::take(&collection, &item) {
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L231
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:231:50
|
231 | let details = Item::<T, I>::get(&collection, &item)
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L231
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:231:37
|
231 | let details = Item::<T, I>::get(&collection, &item)
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L227
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:227:4
|
227 | &collection,
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L106
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:106:39
|
106 | Item::<T, I>::insert(&collection, &item, details);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L106
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:106:26
|
106 | Item::<T, I>::insert(&collection, &item, details);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L94
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:94:48
|
94 | ItemConfigOf::<T, I>::insert(&collection, &item, item_config);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L94
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:94:35
|
94 | ItemConfigOf::<T, I>::insert(&collection, &item, item_config);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L91
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:91:77
|
91 | if let Ok(existing_config) = ItemConfigOf::<T, I>::try_get(&collection, &item) {
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L91
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:91:64
|
91 | if let Ok(existing_config) = ItemConfigOf::<T, I>::try_get(&collection, &item) {
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_item.rs#L59
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:59:4
|
59 | &collection,
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_collection.rs#L148
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:148:47
|
148 | let _ = ItemConfigOf::<T, I>::clear_prefix(&collection, witness.item_configs, None);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_collection.rs#L147
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:147:39
|
147 | CollectionConfigOf::<T, I>::remove(&collection);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_collection.rs#L145
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:145:65
|
145 | CollectionAccount::<T, I>::remove(&collection_details.owner, &collection);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_collection.rs#L129
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:129:41
|
129 | CollectionMetadataOf::<T, I>::remove(&collection);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_collection.rs#L123
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:123:62
|
123 | for (_, metadata) in ItemMetadataOf::<T, I>::drain_prefix(&collection) {
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_collection.rs#L69
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:69:45
|
69 | CollectionAccount::<T, I>::insert(&owner, &collection, ());
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/create_delete_collection.rs#L68
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:68:38
|
68 | CollectionConfigOf::<T, I>::insert(&collection, config);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/buy_sell.rs#L144
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/buy_sell.rs:144:42
|
144 | ItemPriceOf::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::NotForSale)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/buy_sell.rs#L144
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/buy_sell.rs:144:29
|
144 | ItemPriceOf::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::NotForSale)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/buy_sell.rs#L140
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/buy_sell.rs:140:48
|
140 | let details = Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/buy_sell.rs#L140
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/buy_sell.rs:140:35
|
140 | let details = Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/buy_sell.rs#L109
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/buy_sell.rs:109:45
|
109 | ItemPriceOf::<T, I>::remove(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/buy_sell.rs#L109
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/buy_sell.rs:109:32
|
109 | ItemPriceOf::<T, I>::remove(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/buy_sell.rs#L101
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/buy_sell.rs:101:45
|
101 | ItemPriceOf::<T, I>::insert(&collection, &item, (price, whitelisted_buyer.clone()));
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/buy_sell.rs#L101
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/buy_sell.rs:101:32
|
101 | ItemPriceOf::<T, I>::insert(&collection, &item, (price, whitelisted_buyer.clone()));
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/buy_sell.rs#L85
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/buy_sell.rs:85:48
|
85 | let details = Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/buy_sell.rs#L85
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/buy_sell.rs:85:35
|
85 | let details = Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/attributes.rs#L476
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/attributes.rs:476:58
|
476 | result = account_id == origin && approvals.contains(&origin)
| ^^^^^^^ help: change this to: `origin`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L475
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:475:74
|
475 | let approvals = ItemAttributesApprovalsOf::<T, I>::get(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L475
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:475:61
|
475 | let approvals = ItemAttributesApprovalsOf::<T, I>::get(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L470
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:470:38
|
470 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L470
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:470:25
|
470 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/attributes.rs#L466
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/attributes.rs:466:42
|
466 | result = Self::has_role(&collection, &origin, CollectionRole::Admin),
| ^^^^^^^ help: change this to: `origin`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/attributes.rs#L466
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/attributes.rs:466:29
|
466 | result = Self::has_role(&collection, &origin, CollectionRole::Admin),
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L425
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:425:48
|
425 | let details = Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L425
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:425:35
|
425 | let details = Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L384
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:384:48
|
384 | let details = Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L384
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:384:35
|
384 | let details = Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L341
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:341:28
|
341 | Collection::<T, I>::get(&collection).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/attributes.rs#L330
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/attributes.rs:330:37
|
330 | ... Self::has_role(&collection, &check_origin, CollectionRole::Admin),
| ^^^^^^^^^^^^^ help: change this to: `check_origin`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
you seem to be trying to use `match` for an equality check. Consider using `if`:
pallets/nfts/src/features/attributes.rs#L307
warning: you seem to be trying to use `match` for an equality check. Consider using `if`
--> pallets/nfts/src/features/attributes.rs:307:4
|
307 | / match namespace {
308 | | AttributeNamespace::CollectionOwner => match maybe_item {
309 | | None => {
310 | | let collection_config = Self::get_collection_config(&collection)?;
... |
336 | | _ => (),
337 | | };
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
help: try
|
307 ~ if namespace == AttributeNamespace::CollectionOwner { match maybe_item {
308 ~ None => {
309 ~ let collection_config = Self::get_collection_config(&collection)?;
310 ~ ensure!(
311 ~ collection_config
312 ~ .is_setting_enabled(CollectionSetting::UnlockedAttributes),
313 ~ Error::<T, I>::LockedCollectionAttributes
314 ~ )
315 ~ },
316 ~ Some(item) => {
317 ~ // NOTE: if the item was previously burned, the ItemConfigOf record
318 ~ // might not exist. In that case, we allow to clear the attribute.
319 ~ let maybe_is_locked = Self::get_item_config(&collection, &item)
320 ~ .map_or(None, |c| {
321 ~ Some(c.has_disabled_setting(ItemSetting::UnlockedAttributes))
322 ~ });
323 ~ if let Some(is_locked) = maybe_is_locked {
324 ~ ensure!(!is_locked, Error::<T, I>::LockedItemAttributes);
325 ~ // Only the collection's admin can clear attributes in that namespace.
326 ~ // e.g. in off-chain mints, the attribute's depositor will be the item's
327 ~ // owner, that's why we need to do this extra check.
328 ~ ensure!(
329 ~ Self::has_role(&collection, &check_origin, CollectionRole::Admin),
330 ~ Error::<T, I>::NoPermission
331 ~ );
332 ~ }
333 ~ },
334 ~ } };
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/attributes.rs#L301
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/attributes.rs:301:31
|
301 | Self::is_valid_namespace(&check_origin, &namespace, &collection, &maybe_item)?,
| ^^^^^^^^^^^^^ help: change this to: `check_origin`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
doc list item without indentation:
pallets/nfts/src/features/attributes.rs#L277
warning: doc list item without indentation
--> pallets/nfts/src/features/attributes.rs:277:6
|
277 | /// clearing the attribute. This can be `None` if no additional check is required.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: indent this line
|
277 | /// clearing the attribute. This can be `None` if no additional check is required.
| ++
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L242
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:242:73
|
242 | let approvals = ItemAttributesApprovalsOf::<T, I>::get(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L242
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:242:60
|
242 | let approvals = ItemAttributesApprovalsOf::<T, I>::get(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L233
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:233:35
|
233 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L233
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:233:22
|
233 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L186
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:186:28
|
186 | Collection::<T, I>::get(&collection).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/attributes.rs#L90
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/attributes.rs:90:28
|
90 | Collection::<T, I>::get(&collection).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
you seem to be trying to use `match` for an equality check. Consider using `if`:
pallets/nfts/src/features/attributes.rs#L72
warning: you seem to be trying to use `match` for an equality check. Consider using `if`
--> pallets/nfts/src/features/attributes.rs:72:3
|
72 | / match namespace {
73 | | AttributeNamespace::CollectionOwner => match maybe_item {
74 | | None => {
75 | | ensure!(
... |
86 | | _ => (),
87 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
= note: `#[warn(clippy::single_match)]` on by default
help: try
|
72 ~ if namespace == AttributeNamespace::CollectionOwner { match maybe_item {
73 ~ None => {
74 ~ ensure!(
75 ~ collection_config.is_setting_enabled(CollectionSetting::UnlockedAttributes),
76 ~ Error::<T, I>::LockedCollectionAttributes
77 ~ )
78 ~ },
79 ~ Some(item) => {
80 ~ let maybe_is_locked = Self::get_item_config(&collection, &item)
81 ~ .map(|c| c.has_disabled_setting(ItemSetting::UnlockedAttributes))?;
82 ~ ensure!(!maybe_is_locked, Error::<T, I>::LockedItemAttributes);
83 ~ },
84 ~ } }
|
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L179
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:179:65
|
179 | let swap = PendingSwapOf::<T, I>::get(&receive_collection_id, &receive_item_id)
| ^^^^^^^^^^^^^^^^ help: change this to: `receive_item_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L179
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:179:41
|
179 | let swap = PendingSwapOf::<T, I>::get(&receive_collection_id, &receive_item_id)
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `receive_collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L177
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:177:64
|
177 | let receive_item = Item::<T, I>::get(&receive_collection_id, &receive_item_id)
| ^^^^^^^^^^^^^^^^ help: change this to: `receive_item_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L177
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:177:40
|
177 | let receive_item = Item::<T, I>::get(&receive_collection_id, &receive_item_id)
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `receive_collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L175
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:175:58
|
175 | let send_item = Item::<T, I>::get(&send_collection_id, &send_item_id)
| ^^^^^^^^^^^^^ help: change this to: `send_item_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L175
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:175:37
|
175 | let send_item = Item::<T, I>::get(&send_collection_id, &send_item_id)
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `send_collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
missing documentation for a type alias:
extension/src/lib.rs#L41
warning: missing documentation for a type alias
--> extension/src/lib.rs:41:1
|
41 | pub type ContractWeightsOf<T> = <T as pallet_revive::Config>::WeightInfo;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L131
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:131:57
|
131 | PendingSwapOf::<T, I>::remove(&offered_collection_id, &offered_item_id);
| ^^^^^^^^^^^^^^^^ help: change this to: `offered_item_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
missing documentation for the crate:
extension/src/lib.rs#L1
warning: missing documentation for the crate
--> extension/src/lib.rs:1:1
|
1 | / #![cfg_attr(not(feature = "std"), no_std)]
2 | |
3 | | use core::marker::PhantomData;
... |
233 | | }
234 | | }
| |_^
|
= note: requested on the command line with `-W missing-docs`
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L131
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:131:33
|
131 | PendingSwapOf::<T, I>::remove(&offered_collection_id, &offered_item_id);
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `offered_collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L126
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:126:57
|
126 | let item = Item::<T, I>::get(&offered_collection_id, &offered_item_id)
| ^^^^^^^^^^^^^^^^ help: change this to: `offered_item_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L126
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:126:33
|
126 | let item = Item::<T, I>::get(&offered_collection_id, &offered_item_id)
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `offered_collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L121
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:121:65
|
121 | let swap = PendingSwapOf::<T, I>::get(&offered_collection_id, &offered_item_id)
| ^^^^^^^^^^^^^^^^ help: change this to: `offered_item_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L121
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:121:41
|
121 | let swap = PendingSwapOf::<T, I>::get(&offered_collection_id, &offered_item_id)
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `offered_collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L85
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:85:4
|
85 | &offered_item_id,
| ^^^^^^^^^^^^^^^^ help: change this to: `offered_item_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L84
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:84:4
|
84 | &offered_collection_id,
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `offered_collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L75
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:75:38
|
75 | Collection::<T, I>::contains_key(&desired_collection_id),
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `desired_collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L71
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:71:56
|
71 | Item::<T, I>::contains_key(&desired_collection_id, &desired_item_id),
| ^^^^^^^^^^^^^^^^ help: change this to: `desired_item_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L71
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:71:32
|
71 | Item::<T, I>::contains_key(&desired_collection_id, &desired_item_id),
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `desired_collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L65
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:65:56
|
65 | let item = Item::<T, I>::get(&offered_collection_id, &offered_item_id)
| ^^^^^^^^^^^^^^^^ help: change this to: `offered_item_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/atomic_swap.rs#L65
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/atomic_swap.rs:65:32
|
65 | let item = Item::<T, I>::get(&offered_collection_id, &offered_item_id)
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `offered_collection_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/features/approvals.rs#L244
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/features/approvals.rs:244:41
|
244 | let deadline = details.approvals.get(&delegate).ok_or(Error::<T, I>::NoPermission)?;
| ^^^^^^^^^ help: change this to: `delegate`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L242
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:242:36
|
242 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L242
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:242:23
|
242 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L235
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:235:36
|
235 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L235
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:235:23
|
235 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L163
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:163:37
|
163 | Item::<T, I>::insert(&collection, &item, &details);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L163
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:163:24
|
163 | Item::<T, I>::insert(&collection, &item, &details);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L156
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:156:35
|
156 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L156
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:156:22
|
156 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownCollection)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L125
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:125:37
|
125 | Item::<T, I>::insert(&collection, &item, &details);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L125
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:125:24
|
125 | Item::<T, I>::insert(&collection, &item, &details);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L107
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:107:35
|
107 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L107
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:107:22
|
107 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L75
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:75:37
|
75 | Item::<T, I>::insert(&collection, &item, &details);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L75
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:75:24
|
75 | Item::<T, I>::insert(&collection, &item, &details);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L57
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:57:35
|
57 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L57
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:57:22
|
57 | Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/common_functions.rs#L74
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/common_functions.rs:74:39
|
74 | ensure!(signature.verify(&*wrapped, &signer), Error::<T, I>::WrongSignature);
| ^^^^^^^ help: change this to: `signer`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/nfts/src/common_functions.rs#L61
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/common_functions.rs:61:32
|
61 | if signature.verify(&**data, &signer) {
| ^^^^^^^ help: change this to: `signer`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
the borrowed expression implements the required traits:
pallets/nfts/src/migration.rs#L74
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/migration.rs:74:56
|
74 | let item_configs = ItemConfigOf::<T>::iter_prefix(&key).count() as u32;
| ^^^^ help: change this to: `key`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
very complex type used. Consider factoring parts into `type` definitions:
extension/src/functions.rs#L83
warning: very complex type used. Consider factoring parts into `type` definitions
--> extension/src/functions.rs:83:2
|
83 | PhantomData<(M, C, R, D, F, RC, E, L)>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` on by default
|
useless conversion to the same type: `sp_runtime::AccountId32`:
extension/src/environment.rs#L216
warning: useless conversion to the same type: `sp_runtime::AccountId32`
--> extension/src/environment.rs:216:3
|
216 | account_id.into()
| ^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `account_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
useless conversion to the same type: `<T as pallet::Config<I>>::OffchainSignature`:
pallets/nfts/src/benchmarking.rs#L869
warning: useless conversion to the same type: `<T as pallet::Config<I>>::OffchainSignature`
--> pallets/nfts/src/benchmarking.rs:869:66
|
869 | }: _(SystemOrigin::Signed(item_owner.clone()), pre_signed_data, signature.into(), signer.clone())
| ^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `signature`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
casting to the same type is unnecessary (`u32` -> `u32`):
pallets/nfts/src/benchmarking.rs#L833
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> pallets/nfts/src/benchmarking.rs:833:17
|
833 | let n in 0 .. T::MaxAttributesPerCall::get() as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `T::MaxAttributesPerCall::get()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
useless conversion to the same type: `<T as pallet::Config<I>>::OffchainSignature`:
pallets/nfts/src/benchmarking.rs#L826
warning: useless conversion to the same type: `<T as pallet::Config<I>>::OffchainSignature`
--> pallets/nfts/src/benchmarking.rs:826:66
|
826 | }: _(SystemOrigin::Signed(target.clone()), Box::new(mint_data), signature.into(), caller)
| ^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `signature`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
casting to the same type is unnecessary (`u32` -> `u32`):
pallets/nfts/src/benchmarking.rs#L791
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> pallets/nfts/src/benchmarking.rs:791:17
|
791 | let n in 0 .. T::MaxAttributesPerCall::get() as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `T::MaxAttributesPerCall::get()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
pallets/nfts/src/benchmarking.rs#L685
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> pallets/nfts/src/benchmarking.rs:685:17
|
685 | let n in 0 .. T::MaxTips::get() as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `T::MaxTips::get()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
unneeded unit expression:
extension/src/environment.rs#L191
warning: unneeded unit expression
--> extension/src/environment.rs:191:3
|
191 | ()
| ^^ help: remove the final `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
= note: `#[warn(clippy::unused_unit)]` on by default
|
the borrowed expression implements the required traits:
pallets/nfts/src/benchmarking.rs#L78
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/benchmarking.rs:78:59
|
78 | let item_config = ItemConfigOf::<T, I>::get(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/benchmarking.rs#L78
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/benchmarking.rs:78:46
|
78 | let item_config = ItemConfigOf::<T, I>::get(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/benchmarking.rs#L77
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/benchmarking.rs:77:60
|
77 | let item_exists = Item::<T, I>::contains_key(&collection, &item);
| ^^^^^ help: change this to: `item`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/nfts/src/benchmarking.rs#L77
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/benchmarking.rs:77:47
|
77 | let item_exists = Item::<T, I>::contains_key(&collection, &item);
| ^^^^^^^^^^^ help: change this to: `collection`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
duplicated attribute:
pallets/nfts/src/benchmarking.rs#L20
warning: duplicated attribute
--> pallets/nfts/src/benchmarking.rs:20:8
|
20 | #![cfg(feature = "runtime-benchmarks")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: first defined here
--> pallets/nfts/src/lib.rs:31:7
|
31 | #[cfg(feature = "runtime-benchmarks")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: remove this attribute
--> pallets/nfts/src/benchmarking.rs:20:8
|
20 | #![cfg(feature = "runtime-benchmarks")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#duplicated_attributes
= note: `#[warn(clippy::duplicated_attributes)]` on by default
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bounded-collections-0.2.0/src/lib.rs#L179
warning: missing documentation for a struct
--> pallets/revive/src/lib.rs:320:3
|
320 | / parameter_types! {
321 | | pub const DepositPerItem: Balance = deposit(1, 0);
322 | | pub const DepositPerByte: Balance = deposit(0, 1);
323 | | pub const CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(0);
324 | | }
| |_________^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bounded-collections-0.2.0/src/lib.rs#L179
warning: missing documentation for a struct
--> pallets/revive/src/lib.rs:320:3
|
320 | / parameter_types! {
321 | | pub const DepositPerItem: Balance = deposit(1, 0);
322 | | pub const DepositPerByte: Balance = deposit(0, 1);
323 | | pub const CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(0);
324 | | }
| |_________^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bounded-collections-0.2.0/src/lib.rs#L179
warning: missing documentation for a struct
--> pallets/revive/src/lib.rs:320:3
|
320 | / parameter_types! {
321 | | pub const DepositPerItem: Balance = deposit(1, 0);
322 | | pub const DepositPerByte: Balance = deposit(0, 1);
323 | | pub const CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(0);
324 | | }
| |_________^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a function:
pallets/revive/src/lib.rs#L316
warning: missing documentation for a function
--> pallets/revive/src/lib.rs:316:3
|
316 | pub const fn deposit(items: u32, bytes: u32) -> Balance {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L455
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:455:64
|
455 | StorageDepositTransferredAndReleased { from: H160, to: H160, amount: BalanceOf<T> },
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L455
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:455:54
|
455 | StorageDepositTransferredAndReleased { from: H160, to: H160, amount: BalanceOf<T> },
| ^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L455
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:455:42
|
455 | StorageDepositTransferredAndReleased { from: H160, to: H160, amount: BalanceOf<T> },
| ^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L452
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:452:60
|
452 | StorageDepositTransferredAndHeld { from: H160, to: H160, amount: BalanceOf<T> },
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L452
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:452:50
|
452 | StorageDepositTransferredAndHeld { from: H160, to: H160, amount: BalanceOf<T> },
| ^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L452
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:452:38
|
452 | StorageDepositTransferredAndHeld { from: H160, to: H160, amount: BalanceOf<T> },
| ^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L410
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:410:66
|
410 | CodeRemoved { code_hash: H256, deposit_released: BalanceOf<T>, remover: H160 },
| ^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L410
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:410:34
|
410 | CodeRemoved { code_hash: H256, deposit_released: BalanceOf<T>, remover: H160 },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L410
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:410:17
|
410 | CodeRemoved { code_hash: H256, deposit_released: BalanceOf<T>, remover: H160 },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L395
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:395:61
|
395 | CodeStored { code_hash: H256, deposit_held: BalanceOf<T>, uploader: H160 },
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L395
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:395:33
|
395 | CodeStored { code_hash: H256, deposit_held: BalanceOf<T>, uploader: H160 },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L395
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:395:16
|
395 | CodeStored { code_hash: H256, deposit_held: BalanceOf<T>, uploader: H160 },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L379
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:379:34
|
379 | Instantiated { deployer: H160, contract: H160 },
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/lib.rs#L379
warning: missing documentation for a struct field
--> pallets/revive/src/lib.rs:379:18
|
379 | Instantiated { deployer: H160, contract: H160 },
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/test_utils/builder.rs#L80
warning: missing documentation for a struct field
--> pallets/revive/src/test_utils/builder.rs:80:2
|
80 | pub addr: H160,
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/test_utils/builder.rs#L79
warning: missing documentation for a struct field
--> pallets/revive/src/test_utils/builder.rs:79:2
|
79 | pub account_id: AccountIdOf<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
pallets/revive/src/test_utils/builder.rs#L78
warning: missing documentation for a struct
--> pallets/revive/src/test_utils/builder.rs:78:1
|
78 | pub struct Contract<T: Config> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a function:
pallets/revive/src/test_utils.rs#L63
warning: missing documentation for a function
--> pallets/revive/src/test_utils.rs:63:1
|
63 | pub fn deposit_limit<T: Config>() -> BalanceOf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L61
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:61:1
|
61 | pub const GAS_LIMIT: Weight = Weight::from_parts(100_000_000_000, 3 * 1024 * 1024);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L59
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:59:1
|
59 | pub const EVE_FALLBACK: AccountId32 = ee_suffix([5u8; 32]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L58
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:58:1
|
58 | pub const EVE_ADDR: H160 = H160([5u8; 20]);
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L54
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:54:1
|
54 | pub const DJANGO_FALLBACK: AccountId32 = ee_suffix([4u8; 32]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L53
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:53:1
|
53 | pub const DJANGO_ADDR: H160 = H160([4u8; 20]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L52
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:52:1
|
52 | pub const DJANGO: AccountId32 = AccountId32::new([4u8; 32]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L50
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:50:1
|
50 | pub const CHARLIE_FALLBACK: AccountId32 = ee_suffix([3u8; 32]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L49
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:49:1
|
49 | pub const CHARLIE_ADDR: H160 = H160([3u8; 20]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L48
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:48:1
|
48 | pub const CHARLIE: AccountId32 = AccountId32::new([3u8; 32]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L46
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:46:1
|
46 | pub const BOB_FALLBACK: AccountId32 = ee_suffix([2u8; 32]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L45
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:45:1
|
45 | pub const BOB_ADDR: H160 = H160([2u8; 20]);
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L44
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:44:1
|
44 | pub const BOB: AccountId32 = AccountId32::new([2u8; 32]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L42
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:42:1
|
42 | pub const ALICE_FALLBACK: AccountId32 = ee_suffix([1u8; 32]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L41
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:41:1
|
41 | pub const ALICE_ADDR: H160 = H160([1u8; 20]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/src/test_utils.rs#L40
warning: missing documentation for a constant
--> pallets/revive/src/test_utils.rs:40:1
|
40 | pub const ALICE: AccountId32 = AccountId32::new([1u8; 32]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a module:
pallets/revive/src/test_utils.rs#L23
warning: missing documentation for a module
--> pallets/revive/src/test_utils.rs:23:1
|
23 | pub mod builder;
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/chain_extension.rs#L197
warning: missing documentation for a struct field
--> pallets/revive/src/chain_extension.rs:197:34
|
197 | Diverging { flags: ReturnFlags, data: Vec<u8> },
| ^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/chain_extension.rs#L197
warning: missing documentation for a struct field
--> pallets/revive/src/chain_extension.rs:197:14
|
197 | Diverging { flags: ReturnFlags, data: Vec<u8> },
| ^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/revive/src/wasm/runtime.rs#L1145
warning: missing documentation for a method
--> pallets/revive/src/wasm/runtime.rs:1145:1
|
1145 | #[define_env]
| ^^^^^^^^^^^^^
|
= note: this warning originates in the attribute macro `define_env` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for an associated function:
pallets/revive/src/wasm/runtime.rs#L604
warning: missing documentation for an associated function
--> pallets/revive/src/wasm/runtime.rs:604:2
|
604 | pub fn new(ext: &'a mut E, input_data: Vec<u8>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/revive/src/wasm/runtime.rs#L559
warning: missing documentation for a method
--> pallets/revive/src/wasm/runtime.rs:559:2
|
559 | / pub fn handle_interrupt(
560 | | &mut self,
561 | | interrupt: Result<polkavm::InterruptKind, polkavm::Error>,
562 | | module: &polkavm::Module,
563 | | instance: &mut M,
564 | | api_version: ApiVersion,
565 | | ) -> Option<ExecResult> {
| |___________________________^
|
missing documentation for a struct field:
pallets/revive/src/wasm/runtime.rs#L368
warning: missing documentation for a struct field
--> pallets/revive/src/wasm/runtime.rs:368:16
|
368 | Instantiate { input_data_len: u32 },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/wasm/runtime.rs#L348
warning: missing documentation for a struct field
--> pallets/revive/src/wasm/runtime.rs:348:40
|
348 | SetTransientStorage { old_bytes: u32, new_bytes: u32 },
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/wasm/runtime.rs#L348
warning: missing documentation for a struct field
--> pallets/revive/src/wasm/runtime.rs:348:24
|
348 | SetTransientStorage { old_bytes: u32, new_bytes: u32 },
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/wasm/runtime.rs#L338
warning: missing documentation for a struct field
--> pallets/revive/src/wasm/runtime.rs:338:31
|
338 | SetStorage { old_bytes: u32, new_bytes: u32 },
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/wasm/runtime.rs#L338
warning: missing documentation for a struct field
--> pallets/revive/src/wasm/runtime.rs:338:15
|
338 | SetStorage { old_bytes: u32, new_bytes: u32 },
| ^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/wasm/runtime.rs#L334
warning: missing documentation for a struct field
--> pallets/revive/src/wasm/runtime.rs:334:33
|
334 | DepositEvent { num_topic: u32, len: u32 },
| ^^^^^^^^
|
missing documentation for a struct field:
pallets/revive/src/wasm/runtime.rs#L334
warning: missing documentation for a struct field
--> pallets/revive/src/wasm/runtime.rs:334:17
|
334 | DepositEvent { num_topic: u32, len: u32 },
| ^^^^^^^^^^^^^^
|
missing documentation for an enum:
pallets/revive/src/wasm/runtime.rs#L294
warning: missing documentation for an enum
--> pallets/revive/src/wasm/runtime.rs:294:1
|
294 | pub enum RuntimeCosts {
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an enum:
pallets/revive/src/wasm/runtime.rs#L57
warning: missing documentation for an enum
--> pallets/revive/src/wasm/runtime.rs:57:1
|
57 | pub enum ApiVersion {
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/revive/src/wasm/mod.rs#L278
warning: missing documentation for a method
--> pallets/revive/src/wasm/mod.rs:278:2
|
278 | / pub fn prepare_call<E: Ext<T = T>>(
279 | | self,
280 | | mut runtime: Runtime<E, polkavm::RawInstance>,
281 | | entry_point: ExportedFunction,
282 | | api_version: ApiVersion,
283 | | ) -> Result<PreparedCall<E>, ExecError> {
| |___________________________________________^
|
missing documentation for a method:
pallets/revive/src/wasm/mod.rs#L260
warning: missing documentation for a method
--> pallets/revive/src/wasm/mod.rs:260:2
|
260 | pub fn call(mut self) -> ExecResult {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
pallets/revive/src/wasm/mod.rs#L248
warning: missing documentation for a struct
--> pallets/revive/src/wasm/mod.rs:248:1
|
248 | pub struct PreparedCall<'a, E: Ext> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/revive/src/primitives.rs#L185
warning: missing documentation for a method
--> pallets/revive/src/primitives.rs:185:2
|
185 | pub fn is_zero(&self) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
pallets/revive/src/gas.rs#L35
warning: missing documentation for a method
--> pallets/revive/src/gas.rs:35:2
|
35 | pub fn amount(&self) -> Weight {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
pallets/revive/src/gas.rs#L32
warning: missing documentation for a struct
--> pallets/revive/src/gas.rs:32:1
|
32 | pub struct ChargedAmount(Weight);
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for an associated type:
pallets/revive/src/exec.rs#L196
warning: missing documentation for an associated type
--> pallets/revive/src/exec.rs:196:2
|
196 | type T: Config;
| ^^^^^^^^^^^^^^
|
missing documentation for a type alias:
pallets/revive/src/exec.rs#L64
warning: missing documentation for a type alias
--> pallets/revive/src/exec.rs:64:1
|
64 | pub type ExecResult = Result<ExecReturnValue, ExecError>;
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a module:
pallets/revive/src/lib.rs#L41
warning: missing documentation for a module
--> pallets/revive/src/lib.rs:41:1
|
41 | pub mod debug;
| ^^^^^^^^^^^^^
|
= note: requested on the command line with `-W missing-docs`
|
this function has too many arguments (9/7):
pallets/revive/src/lib.rs#L1221
warning: this function has too many arguments (9/7)
--> pallets/revive/src/lib.rs:1221:1
|
1221 | / sp_api::decl_runtime_apis! {
1222 | | /// The API used to dry-run contract interactions.
1223 | | #[api_version(1)]
1224 | | pub trait ReviveApi<AccountId, Balance, BlockNumber, EventRecord> where
... |
1273 | | }
1274 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: this warning originates in the macro `sp_api::decl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
this function has too many arguments (8/7):
pallets/revive/src/lib.rs#L1221
warning: this function has too many arguments (8/7)
--> pallets/revive/src/lib.rs:1221:1
|
1221 | / sp_api::decl_runtime_apis! {
1222 | | /// The API used to dry-run contract interactions.
1223 | | #[api_version(1)]
1224 | | pub trait ReviveApi<AccountId, Balance, BlockNumber, EventRecord> where
... |
1273 | | }
1274 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: this warning originates in the macro `sp_api::decl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
|
the borrowed expression implements the required traits:
pallets/revive/src/lib.rs#L1165
warning: the borrowed expression implements the required traits
--> pallets/revive/src/lib.rs:1165:29
|
1165 | ContractInfoOf::<T>::get(&address).ok_or(ContractAccessError::DoesntExist)?;
| ^^^^^^^^ help: change this to: `address`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this function has too many arguments (9/7):
pallets/revive/src/lib.rs#L1085
warning: this function has too many arguments (9/7)
--> pallets/revive/src/lib.rs:1085:2
|
1085 | / pub fn bare_instantiate(
1086 | | origin: OriginFor<T>,
1087 | | value: BalanceOf<T>,
1088 | | gas_limit: Weight,
... |
1094 | | collect_events: CollectEvents,
1095 | | ) -> ContractInstantiateResult<BalanceOf<T>, EventRecordOf<T>> {
| |__________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this function has too many arguments (8/7):
pallets/revive/src/lib.rs#L1031
warning: this function has too many arguments (8/7)
--> pallets/revive/src/lib.rs:1031:2
|
1031 | / pub fn bare_call(
1032 | | origin: OriginFor<T>,
1033 | | dest: H160,
1034 | | value: BalanceOf<T>,
... |
1039 | | collect_events: CollectEvents,
1040 | | ) -> ContractExecResult<BalanceOf<T>, EventRecordOf<T>> {
| |___________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
the borrowed expression implements the required traits:
pallets/revive/src/lib.rs#L939
warning: the borrowed expression implements the required traits
--> pallets/revive/src/lib.rs:939:36
|
939 | <ContractInfoOf<T>>::try_mutate(&dest, |contract| {
| ^^^^^ help: change this to: `dest`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this operation has no effect:
pallets/revive/src/lib.rs#L317
warning: this operation has no effect
--> pallets/revive/src/lib.rs:317:35
|
317 | items as Balance * 1 * CENTS + (bytes as Balance) * 1 * CENTS
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider reducing it to: `(bytes as Balance)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
|
this operation has no effect:
pallets/revive/src/lib.rs#L317
warning: this operation has no effect
--> pallets/revive/src/lib.rs:317:4
|
317 | items as Balance * 1 * CENTS + (bytes as Balance) * 1 * CENTS
| ^^^^^^^^^^^^^^^^^^^^ help: consider reducing it to: `items as Balance`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
= note: `#[warn(clippy::identity_op)]` on by default
|
doc list item without indentation:
pallets/revive/src/debug.rs#L93
warning: doc list item without indentation
--> pallets/revive/src/debug.rs:93:6
|
93 | /// is returned.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: indent this line
|
93 | /// is returned.
| ++
|
unnecessary closure used to substitute value for `Option::None`:
pallets/revive/src/wasm/mod.rs#L298
warning: unnecessary closure used to substitute value for `Option::None`
--> pallets/revive/src/wasm/mod.rs:298:31
|
298 | let entry_program_counter = module
| _____________________________________^
299 | | .exports()
300 | | .find(|export| export.symbol().as_bytes() == entry_point.identifier().as_bytes())
301 | | .ok_or_else(|| <Error<T>>::CodeRejected)?
| |____________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
help: use `ok_or` instead
|
301 | .ok_or(<Error<T>>::CodeRejected)?
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
the borrowed expression implements the required traits:
pallets/revive/src/wasm/mod.rs#L170
warning: the borrowed expression implements the required traits
--> pallets/revive/src/wasm/mod.rs:170:31
|
170 | <PristineCode<T>>::remove(&code_hash);
| ^^^^^^^^^^ help: change this to: `code_hash`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/revive/src/wasm/mod.rs#L156
warning: the borrowed expression implements the required traits
--> pallets/revive/src/wasm/mod.rs:156:38
|
156 | <CodeInfoOf<T>>::try_mutate_exists(&code_hash, |existing| {
| ^^^^^^^^^^ help: change this to: `code_hash`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this function has too many arguments (13/7):
pallets/revive/src/wasm/runtime.rs#L1145
warning: this function has too many arguments (13/7)
--> pallets/revive/src/wasm/runtime.rs:1145:1
|
1145 | #[define_env]
| ^------------
| |
| _in this procedural macro expansion
| |
1146 | | pub mod env {
1147 | | /// Noop function used to benchmark the time it takes to execute an empty function.
1148 | | #[cfg(feature = "runtime-benchmarks")]
... |
1325 | | salt_ptr: u32,
1326 | | ) -> Result<ReturnErrorCode, TrapReason> {
| |____________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: this warning originates in the attribute macro `define_env` (in Nightly builds, run with -Z macro-backtrace for more info)
|
this function has too many arguments (8/7):
pallets/revive/src/wasm/runtime.rs#L1145
warning: this function has too many arguments (8/7)
--> pallets/revive/src/wasm/runtime.rs:1145:1
|
1145 | #[define_env]
| ^------------
| |
| _in this procedural macro expansion
| |
1146 | | pub mod env {
1147 | | /// Noop function used to benchmark the time it takes to execute an empty function.
1148 | | #[cfg(feature = "runtime-benchmarks")]
... |
1295 | | output_len_ptr: u32,
1296 | | ) -> Result<ReturnErrorCode, TrapReason> {
| |____________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: this warning originates in the attribute macro `define_env` (in Nightly builds, run with -Z macro-backtrace for more info)
|
this function has too many arguments (12/7):
pallets/revive/src/wasm/runtime.rs#L1145
warning: this function has too many arguments (12/7)
--> pallets/revive/src/wasm/runtime.rs:1145:1
|
1145 | #[define_env]
| ^------------
| |
| _in this procedural macro expansion
| |
1146 | | pub mod env {
1147 | | /// Noop function used to benchmark the time it takes to execute an empty function.
1148 | | #[cfg(feature = "runtime-benchmarks")]
... |
1266 | | output_len_ptr: u32,
1267 | | ) -> Result<ReturnErrorCode, TrapReason> {
| |____________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: this warning originates in the attribute macro `define_env` (in Nightly builds, run with -Z macro-backtrace for more info)
|
matching on `Some` with `ok()` is redundant:
pallets/revive/src/wasm/runtime.rs#L1769
warning: matching on `Some` with `ok()` is redundant
--> pallets/revive/src/wasm/runtime.rs:1769:4
|
1769 | if let Some(msg) = core::str::from_utf8(&data).ok() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_result_ok
= note: `#[warn(clippy::match_result_ok)]` on by default
help: consider matching on `Ok(msg)` and removing the call to `ok` instead
|
1769 | if let Ok(msg) = core::str::from_utf8(&data) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/wasm/runtime.rs#L1420
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/wasm/runtime.rs:1420:5
|
1420 | &value.as_bytes(),
| ^^^^^^^^^^^^^^^^^ help: change this to: `value.as_bytes()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/wasm/runtime.rs#L1105
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/wasm/runtime.rs:1105:7
|
1105 | &address.as_bytes(),
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `address.as_bytes()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this function has too many arguments (12/7):
pallets/revive/src/wasm/runtime.rs#L1065
warning: this function has too many arguments (12/7)
--> pallets/revive/src/wasm/runtime.rs:1065:2
|
1065 | / fn instantiate(
1066 | | &mut self,
1067 | | memory: &mut M,
1068 | | code_hash_ptr: u32,
... |
1077 | | salt_ptr: u32,
1078 | | ) -> Result<ReturnErrorCode, TrapReason> {
| |____________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
unneeded `return` statement:
pallets/revive/src/wasm/runtime.rs#L1042
warning: unneeded `return` statement
--> pallets/revive/src/wasm/runtime.rs:1042:5
|
1042 | / return Err(TrapReason::Return(ReturnData {
1043 | | flags: output.flags.bits(),
1044 | | data: output.data,
1045 | | }));
| |___________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
1042 ~ Err(TrapReason::Return(ReturnData {
1043 ~ flags: output.flags.bits(),
1044 ~ data: output.data,
1045 ~ }))
|
|
this function has too many arguments (8/7):
pallets/revive/src/wasm/runtime.rs#L975
warning: this function has too many arguments (8/7)
--> pallets/revive/src/wasm/runtime.rs:975:2
|
975 | / fn call(
976 | | &mut self,
977 | | memory: &mut M,
978 | | flags: CallFlags,
... |
983 | | output_len_ptr: u32,
984 | | ) -> Result<ReturnErrorCode, TrapReason> {
| |____________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
`Box::new(_)` of default value:
pallets/revive/src/wasm/runtime.rs#L608
warning: `Box::new(_)` of default value
--> pallets/revive/src/wasm/runtime.rs:608:26
|
608 | chain_extension: Some(Box::new(Default::default())),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Box::default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#box_default
= note: `#[warn(clippy::box_default)]` on by default
|
match expression looks like `matches!` macro:
pallets/revive/src/wasm/runtime.rs#L443
warning: match expression looks like `matches!` macro
--> pallets/revive/src/wasm/runtime.rs:443:3
|
443 | / match self {
444 | | &Self::CallXcmExecute(_) => false,
445 | | _ => true,
446 | | }
| |_________^ help: try: `!matches!(self, &Self::CallXcmExecute(_))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
= note: `#[warn(clippy::match_like_matches_macro)]` on by default
|
unnecessary closure used to substitute value for `Option::None`:
pallets/revive/src/wasm/runtime.rs#L192
warning: unnecessary closure used to substitute value for `Option::None`
--> pallets/revive/src/wasm/runtime.rs:192:4
|
192 | self.get_mut(ptr..ptr + buf.len()).ok_or_else(|| Error::<T>::OutOfBounds)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
help: use `ok_or` instead
|
192 | self.get_mut(ptr..ptr + buf.len()).ok_or(Error::<T>::OutOfBounds)?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
unnecessary closure used to substitute value for `Option::None`:
pallets/revive/src/wasm/runtime.rs#L184
warning: unnecessary closure used to substitute value for `Option::None`
--> pallets/revive/src/wasm/runtime.rs:184:4
|
184 | self.get(ptr..ptr + buf.len()).ok_or_else(|| Error::<T>::OutOfBounds)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
help: use `ok_or` instead
|
184 | self.get(ptr..ptr + buf.len()).ok_or(Error::<T>::OutOfBounds)?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/transient_storage.rs#L335
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/transient_storage.rs:335:33
|
335 | storage_key.extend_from_slice(&key);
| ^^^^ help: change this to: `key`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/transient_storage.rs#L334
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/transient_storage.rs:334:33
|
334 | storage_key.extend_from_slice(&account);
| ^^^^^^^^ help: change this to: `account`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
unneeded `return` statement:
pallets/revive/src/transient_storage.rs#L329
warning: unneeded `return` statement
--> pallets/revive/src/transient_storage.rs:329:3
|
329 | return &mut self.meter
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
329 | &mut self.meter
|
|
the borrowed expression implements the required traits:
pallets/revive/src/storage.rs#L359
warning: the borrowed expression implements the required traits
--> pallets/revive/src/storage.rs:359:28
|
359 | <ContractInfoOf<T>>::get(&T::AddressMapper::to_address(account)).map(|i| i.code_hash)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `T::AddressMapper::to_address(account)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/storage.rs#L329
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/storage.rs:329:56
|
329 | let (weight_per_key, budget) = Self::deletion_budget(&meter);
| ^^^^^^ help: change this to: `meter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/storage/meter.rs#L577
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/storage/meter.rs:577:36
|
577 | T::Currency::reducible_balance(&contract, Preservation::Expendable, Polite),
| ^^^^^^^^^ help: change this to: `contract`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/storage/meter.rs#L576
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/storage/meter.rs:576:5
|
576 | &beneficiary,
| ^^^^^^^^^^^^ help: change this to: `beneficiary`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/storage/meter.rs#L575
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/storage/meter.rs:575:5
|
575 | &contract,
| ^^^^^^^^^ help: change this to: `contract`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/storage/meter.rs#L572
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/storage/meter.rs:572:31
|
572 | System::<T>::dec_consumers(&contract);
| ^^^^^^^^^ help: change this to: `contract`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/storage/meter.rs#L443
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/storage/meter.rs:443:51
|
443 | let deposit = contract_info.update_base_deposit(&code_info);
| ^^^^^^^^^^ help: change this to: `code_info`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
unneeded `return` statement:
pallets/revive/src/storage/meter.rs#L369
warning: unneeded `return` statement
--> pallets/revive/src/storage/meter.rs:369:3
|
369 | / return match origin {
370 | | Origin::Root => Ok(Self { limit, ..Default::default() }),
371 | | Origin::Signed(o) => {
372 | | let limit = E::check_limit(o, limit, min_leftover)?;
373 | | Ok(Self { limit, ..Default::default() })
374 | | },
375 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
369 ~ match origin {
370 ~ Origin::Root => Ok(Self { limit, ..Default::default() }),
371 ~ Origin::Signed(o) => {
372 ~ let limit = E::check_limit(o, limit, min_leftover)?;
373 ~ Ok(Self { limit, ..Default::default() })
374 ~ },
375 ~ }
|
|
unnecessary closure used to substitute value for `Option::None`:
pallets/revive/src/gas.rs#L254
warning: unnecessary closure used to substitute value for `Option::None`
--> pallets/revive/src/gas.rs:254:3
|
254 | / self.gas_left
255 | | .checked_reduce(weight_consumed)
256 | | .ok_or_else(|| Error::<T>::OutOfGas)?;
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
help: use `ok_or` instead
|
256 | .ok_or(Error::<T>::OutOfGas)?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
unnecessary closure used to substitute value for `Option::None`:
pallets/revive/src/gas.rs#L226
warning: unnecessary closure used to substitute value for `Option::None`
--> pallets/revive/src/gas.rs:226:19
|
226 | self.gas_left = self.gas_left.checked_sub(&amount).ok_or_else(|| Error::<T>::OutOfGas)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
help: use `ok_or` instead
|
226 | self.gas_left = self.gas_left.checked_sub(&amount).ok_or(Error::<T>::OutOfGas)?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
unnecessary closure used to substitute value for `Option::None`:
pallets/revive/src/gas.rs#L71
warning: unnecessary closure used to substitute value for `Option::None`
--> pallets/revive/src/gas.rs:71:3
|
71 | self.fuel.checked_sub(amount).ok_or_else(|| Error::<T>::OutOfGas)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
= note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
help: use `ok_or` instead
|
71 | self.fuel.checked_sub(amount).ok_or(Error::<T>::OutOfGas)?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
the borrowed expression implements the required traits:
pallets/revive/src/exec.rs#L1530
warning: the borrowed expression implements the required traits
--> pallets/revive/src/exec.rs:1530:28
|
1530 | <ContractInfoOf<T>>::get(&address).map(|contract| contract.code_hash)
| ^^^^^^^^ help: change this to: `address`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
pallets/revive/src/exec.rs#L1526
warning: the borrowed expression implements the required traits
--> pallets/revive/src/exec.rs:1526:37
|
1526 | ContractInfoOf::<T>::contains_key(&address)
| ^^^^^^^^ help: change this to: `address`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
useless conversion to the same type: `&exec::Key`:
pallets/revive/src/exec.rs#L1483
warning: useless conversion to the same type: `&exec::Key`
--> pallets/revive/src/exec.rs:1483:4
|
1483 | key.into(),
| ^^^^^^^^^^ help: consider removing `.into()`: `key`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `&exec::Key`:
pallets/revive/src/exec.rs#L1472
warning: useless conversion to the same type: `&exec::Key`
--> pallets/revive/src/exec.rs:1472:45
|
1472 | self.top_frame_mut().contract_info().size(key.into())
| ^^^^^^^^^^ help: consider removing `.into()`: `key`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
the borrowed expression implements the required traits:
pallets/revive/src/exec.rs#L1442
warning: the borrowed expression implements the required traits
--> pallets/revive/src/exec.rs:1442:31
|
1442 | ContractInfoOf::<T>::remove(&account_address);
| ^^^^^^^^^^^^^^^^ help: change this to: `account_address`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
this function has too many arguments (8/7):
pallets/revive/src/exec.rs#L771
warning: this function has too many arguments (8/7)
--> pallets/revive/src/exec.rs:771:2
|
771 | / pub fn run_instantiate(
772 | | origin: T::AccountId,
773 | | executable: E,
774 | | gas_meter: &'a mut GasMeter<T>,
... |
779 | | debug_message: Option<&'a mut DebugBuffer>,
780 | | ) -> Result<(H160, ExecReturnValue), ExecError> {
| |___________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this returns a `Result<_, ()>`:
pallets/revive/src/exec.rs#L382
warning: this returns a `Result<_, ()>`
--> pallets/revive/src/exec.rs:382:2
|
382 | fn ecdsa_to_eth_address(&self, pk: &[u8; 33]) -> Result<[u8; 20], ()>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
|
this returns a `Result<_, ()>`:
pallets/revive/src/exec.rs#L376
warning: this returns a `Result<_, ()>`
--> pallets/revive/src/exec.rs:376:2
|
376 | fn ecdsa_recover(&self, signature: &[u8; 65], message_hash: &[u8; 32]) -> Result<[u8; 33], ()>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use a custom `Error` type instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
= note: `#[warn(clippy::result_unit_err)]` on by default
|
this function has too many arguments (8/7):
pallets/revive/src/exec.rs#L201
warning: this function has too many arguments (8/7)
--> pallets/revive/src/exec.rs:201:2
|
201 | / fn call(
202 | | &mut self,
203 | | gas_limit: Weight,
204 | | deposit_limit: U256,
... |
209 | | read_only: bool,
210 | | ) -> Result<(), ExecError>;
| |______________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`:
pallets/revive/src/address.rs#L203
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`
--> pallets/revive/src/address.rs:203:33
|
203 | let init_code: Vec<u8> = code.into_iter().chain(input_data).cloned().collect();
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
= note: `#[warn(clippy::into_iter_on_ref)]` on by default
|
needlessly taken reference of both operands:
pallets/revive/src/address.rs#L157
warning: needlessly taken reference of both operands
--> pallets/revive/src/address.rs:157:3
|
157 | &account_bytes[20..] == &[0xEE; 12] ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: `#[warn(clippy::op_ref)]` on by default
help: use the values directly
|
157 | account_bytes[20..] == [0xEE; 12] ||
| ~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/src/address.rs#L105
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/src/address.rs:105:62
|
105 | H160::from_slice(&<AccountId32 as AsRef<[u8; 32]>>::as_ref(&account_id)[..20])
| ^^^^^^^^^^^ help: change this to: `account_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
constants have by default a `'static` lifetime:
pallets/nfts/src/lib.rs#L70
warning: constants have by default a `'static` lifetime
--> pallets/nfts/src/lib.rs:70:24
|
70 | pub const LOG_TARGET: &'static str = "runtime::nfts";
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
= note: `#[warn(clippy::redundant_static_lifetimes)]` on by default
|
this `else { if .. }` block can be collapsed:
pallets/revive/src/exec.rs#L886
warning: this `else { if .. }` block can be collapsed
--> pallets/revive/src/exec.rs:886:12
|
886 | } else {
| ________________________^
887 | | if let Some(contract) =
888 | | <ContractInfoOf<T>>::get(T::AddressMapper::to_address(&dest))
889 | | {
... |
893 | | }
894 | | };
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
= note: `#[warn(clippy::collapsible_else_if)]` on by default
help: collapse nested if block
|
886 ~ } else if let Some(contract) =
887 ~ <ContractInfoOf<T>>::get(T::AddressMapper::to_address(&dest))
888 ~ {
889 ~ contract
890 ~ } else {
891 ~ return Ok(None);
892 ~ };
|
|
missing documentation for the crate:
runtime/testnet/build.rs#L1
warning: missing documentation for the crate
--> runtime/testnet/build.rs:1:1
|
1 | / #[cfg(all(feature = "std", feature = "metadata-hash"))]
2 | | fn main() {
3 | | substrate_wasm_builder::WasmBuilder::init_with_defaults()
4 | | .enable_metadata_hash("PAS", 10)
... |
15 | | #[cfg(not(feature = "std"))]
16 | | fn main() {}
| |____________^
|
= note: requested on the command line with `-W missing-docs`
|
missing documentation for a function:
pallets/revive/fixtures/src/lib.rs#L56
warning: missing documentation for a function
--> pallets/revive/fixtures/src/lib.rs:56:2
|
56 | pub fn dummy_unique(replace_with: u32) -> Vec<u8> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/fixtures/src/lib.rs#L54
warning: missing documentation for a constant
--> pallets/revive/fixtures/src/lib.rs:54:2
|
54 | pub const INSTR: &[u8] = fixture!("instr_benchmark");
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/fixtures/src/lib.rs#L53
warning: missing documentation for a constant
--> pallets/revive/fixtures/src/lib.rs:53:2
|
53 | pub const NOOP: &[u8] = fixture!("noop");
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
pallets/revive/fixtures/src/lib.rs#L52
warning: missing documentation for a constant
--> pallets/revive/fixtures/src/lib.rs:52:2
|
52 | pub const DUMMY: &[u8] = fixture!("dummy");
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for the crate:
pallets/revive/fixtures/src/lib.rs#L18
warning: missing documentation for the crate
--> pallets/revive/fixtures/src/lib.rs:18:1
|
18 | / #![cfg_attr(not(feature = "std"), no_std)]
19 | |
20 | | extern crate alloc;
... |
73 | | }
74 | | }
| |_^
|
= note: requested on the command line with `-W missing-docs`
|
taken reference of right operand:
pallets/revive/fixtures/src/lib.rs#L60
warning: taken reference of right operand
--> pallets/revive/fixtures/src/lib.rs:60:18
|
60 | .position(|w| w == &[0xDE, 0xAD, 0xBE, 0xEF])
| ^^^^^-------------------------
| |
| help: use the right value directly: `[0xDE, 0xAD, 0xBE, 0xEF]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: `#[warn(clippy::op_ref)]` on by default
|
missing documentation for the crate:
runtime/mainnet/build.rs#L1
warning: missing documentation for the crate
--> runtime/mainnet/build.rs:1:1
|
1 | / #[cfg(all(feature = "std", feature = "metadata-hash"))]
2 | | fn main() {
3 | | substrate_wasm_builder::WasmBuilder::init_with_defaults()
4 | | .enable_metadata_hash("DOT", 10)
... |
15 | | #[cfg(not(feature = "std"))]
16 | | fn main() {}
| |____________^
|
= note: requested on the command line with `-W missing-docs`
|
missing documentation for an associated function:
runtime/common/src/lib.rs#L125
warning: missing documentation for an associated function
--> runtime/common/src/lib.rs:125:3
|
125 | pub fn is_superset(s: &ProxyType, o: &ProxyType) -> bool {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/common/src/lib.rs:76:2
|
76 | / parameter_types! {
77 | | // One storage item; key size 32, value size 8; .
78 | | pub const ProxyDepositBase: Balance = deposit(1, 40);
79 | | // Additional storage item size of 33 bytes.
... |
85 | | pub const MaxPending: u16 = 32;
86 | | }
| |_____^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/common/src/lib.rs:76:2
|
76 | / parameter_types! {
77 | | // One storage item; key size 32, value size 8; .
78 | | pub const ProxyDepositBase: Balance = deposit(1, 40);
79 | | // Additional storage item size of 33 bytes.
... |
85 | | pub const MaxPending: u16 = 32;
86 | | }
| |_____^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/common/src/lib.rs:76:2
|
76 | / parameter_types! {
77 | | // One storage item; key size 32, value size 8; .
78 | | pub const ProxyDepositBase: Balance = deposit(1, 40);
79 | | // Additional storage item size of 33 bytes.
... |
85 | | pub const MaxPending: u16 = 32;
86 | | }
| |_____^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/common/src/lib.rs:76:2
|
76 | / parameter_types! {
77 | | // One storage item; key size 32, value size 8; .
78 | | pub const ProxyDepositBase: Balance = deposit(1, 40);
79 | | // Additional storage item size of 33 bytes.
... |
85 | | pub const MaxPending: u16 = 32;
86 | | }
| |_____^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/common/src/lib.rs:76:2
|
76 | / parameter_types! {
77 | | // One storage item; key size 32, value size 8; .
78 | | pub const ProxyDepositBase: Balance = deposit(1, 40);
79 | | // Additional storage item size of 33 bytes.
... |
85 | | pub const MaxPending: u16 = 32;
86 | | }
| |_____^
|
= 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)
|
missing documentation for a struct:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/lib.rs#L263
warning: missing documentation for a struct
--> runtime/common/src/lib.rs:76:2
|
76 | / parameter_types! {
77 | | // One storage item; key size 32, value size 8; .
78 | | pub const ProxyDepositBase: Balance = deposit(1, 40);
79 | | // Additional storage item size of 33 bytes.
... |
85 | | pub const MaxPending: u16 = 32;
86 | | }
| |_____^
|
= note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
|
missing documentation for a function:
runtime/common/src/lib.rs#L52
warning: missing documentation for a function
--> runtime/common/src/lib.rs:52:1
|
52 | pub const fn deposit(items: u32, bytes: u32) -> Balance {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
runtime/common/src/lib.rs#L49
warning: missing documentation for a constant
--> runtime/common/src/lib.rs:49:1
|
49 | pub const MICROUNIT: Balance = UNIT / 1_000_000; // 10_000
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
runtime/common/src/lib.rs#L48
warning: missing documentation for a constant
--> runtime/common/src/lib.rs:48:1
|
48 | pub const MILLIUNIT: Balance = UNIT / 1_000; // 10_000_000
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
runtime/common/src/lib.rs#L46
warning: missing documentation for a constant
--> runtime/common/src/lib.rs:46:1
|
46 | pub const UNIT: Balance = 10_000_000_000; // 10 decimals
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
runtime/common/src/lib.rs#L31
warning: missing documentation for a constant
--> runtime/common/src/lib.rs:31:1
|
31 | pub const DAYS: BlockNumber = HOURS * 24;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
runtime/common/src/lib.rs#L30
warning: missing documentation for a constant
--> runtime/common/src/lib.rs:30:1
|
30 | pub const HOURS: BlockNumber = MINUTES * 60;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
runtime/common/src/lib.rs#L29
warning: missing documentation for a constant
--> runtime/common/src/lib.rs:29:1
|
29 | pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a constant:
runtime/common/src/lib.rs#L22
warning: missing documentation for a constant
--> runtime/common/src/lib.rs:22:1
|
22 | pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for the crate:
runtime/common/src/lib.rs#L1
warning: missing documentation for the crate
--> runtime/common/src/lib.rs:1:1
|
1 | / #![cfg_attr(not(feature = "std"), no_std)]
2 | | use frame_support::weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight};
3 | | // Cumulus types re-export
4 | | // These types are shared between the devnet and testnet runtimes
... |
136 | | }
137 | | }
| |_^
|
= note: requested on the command line with `-W missing-docs`
|
you are using an explicit closure for cloning elements:
pallets/revive/proc-macro/src/lib.rs#L576
warning: you are using an explicit closure for cloning elements
--> pallets/revive/proc-macro/src/lib.rs:576:17
|
576 | sig.inputs = sig
| __________________________^
577 | | .inputs
578 | | .iter()
579 | | .skip(2)
580 | | .map(|p| p.clone())
| |___________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
= note: `#[warn(clippy::map_clone)]` on by default
help: consider calling the dedicated `cloned` method
|
576 ~ sig.inputs = sig
577 ~ .inputs
578 ~ .iter()
579 ~ .skip(2).cloned()
|
|
doc list item without indentation:
pallets/revive/uapi/src/host.rs#L497
warning: doc list item without indentation
--> pallets/revive/uapi/src/host.rs:497:6
|
497 | /// caller would use the old code.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
|
497 | /// caller would use the old code.
| +++
|
doc list item without indentation:
pallets/revive/uapi/src/host.rs#L496
warning: doc list item without indentation
--> pallets/revive/uapi/src/host.rs:496:6
|
496 | /// would revert the changes made by [`set_code_hash()`][`Self::set_code_hash`] and the next
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
|
496 | /// would revert the changes made by [`set_code_hash()`][`Self::set_code_hash`] and the next
| +++
|
doc list item without indentation:
pallets/revive/uapi/src/host.rs#L495
warning: doc list item without indentation
--> pallets/revive/uapi/src/host.rs:495:6
|
495 | /// the new code. However, if the original caller panics after returning from the sub call it
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
|
495 | /// the new code. However, if the original caller panics after returning from the sub call it
| +++
|
doc list item without indentation:
pallets/revive/uapi/src/host.rs#L492
warning: doc list item without indentation
--> pallets/revive/uapi/src/host.rs:492:6
|
492 | /// code hash.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
|
492 | /// code hash.
| +++
|
doc list item without indentation:
pallets/revive/uapi/src/host.rs#L491
warning: doc list item without indentation
--> pallets/revive/uapi/src/host.rs:491:6
|
491 | /// way, when using this API you lose the guarantee that an address always identifies a specific
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
|
491 | /// way, when using this API you lose the guarantee that an address always identifies a specific
| +++
|
doc list item without indentation:
pallets/revive/uapi/src/host.rs#L488
warning: doc list item without indentation
--> pallets/revive/uapi/src/host.rs:488:6
|
488 | /// the old code.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
|
488 | /// the old code.
| +++
|
doc list item without indentation:
pallets/revive/uapi/src/host.rs#L487
warning: doc list item without indentation
--> pallets/revive/uapi/src/host.rs:487:6
|
487 | /// developers must ensure that the storage layout of the new code is compatible with that of
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: indent this line
|
487 | /// developers must ensure that the storage layout of the new code is compatible with that of
| +++
|
this function has too many arguments (9/7):
pallets/revive/uapi/src/host.rs#L407
warning: this function has too many arguments (9/7)
--> pallets/revive/uapi/src/host.rs:407:2
|
407 | / fn instantiate(
408 | | code_hash: &[u8; 32],
409 | | ref_time_limit: u64,
410 | | proof_size_limit: u64,
... |
416 | | salt: Option<&[u8; 32]>,
417 | | ) -> Result;
| |_______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this function has too many arguments (8/7):
pallets/revive/uapi/src/host.rs#L111
warning: this function has too many arguments (8/7)
--> pallets/revive/uapi/src/host.rs:111:2
|
111 | / fn call(
112 | | flags: CallFlags,
113 | | callee: &[u8; 20],
114 | | ref_time_limit: u64,
... |
119 | | output: Option<&mut &mut [u8]>,
120 | | ) -> Result;
| |_______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L317
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:317:23
|
317 | _ => Err(err(span, &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L314
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:314:25
|
314 | _ => Err(err(span, &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L309
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:309:34
|
309 | ... _ => Err(err(arg1.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L303
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:303:35
|
303 | ... _ => Err(err(ok_ty.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L299
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:299:38
|
299 | ... return Err(err(arg1.span(), &msg))
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L294
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:294:33
|
294 | ... .ok_or(err(arg1.span(), &msg))?
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L287
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:287:34
|
287 | ... _ => Err(err(arg1.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L284
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:284:53
|
284 | let arg1 = group.args.first().ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L282
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:282:24
|
282 | .ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L278
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:278:32
|
278 | ... _ => Err(err(tp.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L275
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:275:33
|
275 | ... .ok_or(err(arg2.span(), &msg))?
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L267
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:267:34
|
267 | ... _ => Err(err(arg2.span(), &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L263
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:263:52
|
263 | let arg2 = group.args.last().ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L260
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:260:29
|
260 | ... return Err(err(span, &msg))
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L255
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:255:64
|
255 | id.eq(&"Result".to_string()).then_some(()).ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L253
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:253:59
|
253 | let result = &tp.path.segments.last().ok_or(err(span, &msg))?;
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
pallets/revive/proc-macro/src/lib.rs#L249
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/revive/proc-macro/src/lib.rs:249:23
|
249 | _ => Err(err(span, &msg)),
| ^^^^ help: change this to: `msg`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
the function `expand_env` doesn't need a mutable reference:
pallets/revive/proc-macro/src/lib.rs#L108
warning: the function `expand_env` doesn't need a mutable reference
--> pallets/revive/proc-macro/src/lib.rs:108:29
|
108 | Ok(mut def) => expand_env(&mut def).into(),
| ^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
= note: `#[warn(clippy::unnecessary_mut_passed)]` on by default
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L66
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:66:5
|
66 | /// }
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L65
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:65:5
|
65 | /// ctx.some_host_fn(KeyType::Fix, key_ptr, value_ptr, value_len).map(|_| ())
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L64
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:64:5
|
64 | /// fn bar(ctx: _, memory: _, key_ptr: u32, value_ptr: u32, value_len: u32) -> Result<u32, TrapReason> {
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L63
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:63:5
|
63 | /// #[unstable]
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L62
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:62:5
|
62 | /// #[version(3)]
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L60
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:60:5
|
60 | /// }
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L59
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:59:5
|
59 | /// ctx.some_host_fn(KeyType::Fix, key_ptr, value_ptr, value_len).map(|_| ())
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L58
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:58:5
|
58 | /// fn foo(ctx: _, memory: _, key_ptr: u32, value_ptr: u32, value_len: u32) -> Result<ReturnErrorCode, TrapReason> {
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L57
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:57:5
|
57 | /// #[version(2)]
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L43
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:43:5
|
43 | /// }
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L42
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:42:5
|
42 | /// ctx.some_host_fn(KeyType::Fix, key_ptr, value_ptr, value_len).map(|_| ())
| ^^^^^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
|
using tabs in doc comments is not recommended:
pallets/revive/proc-macro/src/lib.rs#L41
warning: using tabs in doc comments is not recommended
--> pallets/revive/proc-macro/src/lib.rs:41:5
|
41 | /// fn foo(ctx: _, memory: _, key_ptr: u32, value_ptr: u32, value_len: u32) -> Result<(), TrapReason> {
| ^^^^ help: consider using four spaces per tab
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#tabs_in_doc_comments
= note: `#[warn(clippy::tabs_in_doc_comments)]` on by default
|