Skip to content

feat(spike): cross-chain nonfungible implementation #2042

feat(spike): cross-chain nonfungible implementation

feat(spike): cross-chain nonfungible implementation #2042

Triggered via pull request December 13, 2024 03:38
@chungquantinchungquantin
synchronize #400
Status Success
Total duration 9s
Artifacts

lint-pr.yml

on: pull_request_target
Validate PR title for conventional commit compliance
2s
Validate PR title for conventional commit compliance
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 53 warnings
borrow of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L221
error[E0382]: borrow of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:221:55 | 211 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 219 | ensure!(AccountBalance::<T, I>::get(collection, &owner) > 0, Error::<T, I>::NoItemOwned); | ---------- value moved here 220 | 221 | let collection_config = Self::get_collection_config(&collection)?; | ^^^^^^^^^^^ value borrowed here after move | help: consider cloning the value if the performance cost is acceptable | 219 | ensure!(AccountBalance::<T, I>::get(collection.clone(), &owner) > 0, Error::<T, I>::NoItemOwned); | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L183
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:183:4 | 160 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 180 | Item::<T, I>::insert(collection, item, &details); | ---------- value moved here ... 183 | collection, | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 180 | Item::<T, I>::insert(collection.clone(), item, &details); | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L180
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:180:24 | 160 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 164 | Item::<T, I>::get(collection, item).ok_or(Error::<T, I>::UnknownCollection)?; | ---------- value moved here ... 170 | CollectionApprovals::<T, I>::iter_prefix((collection, &check_origin)) | ---------- value moved here ... 180 | Item::<T, I>::insert(collection, item, &details); | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 170 | CollectionApprovals::<T, I>::iter_prefix((collection.clone(), &check_origin)) | ++++++++ help: consider cloning the value if the performance cost is acceptable | 164 | Item::<T, I>::get(collection.clone(), item).ok_or(Error::<T, I>::UnknownCollection)?; | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L170
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:170:47 | 160 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 164 | Item::<T, I>::get(collection, item).ok_or(Error::<T, I>::UnknownCollection)?; | ---------- value moved here ... 170 | CollectionApprovals::<T, I>::iter_prefix((collection, &check_origin)) | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 164 | Item::<T, I>::get(collection.clone(), item).ok_or(Error::<T, I>::UnknownCollection)?; | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L136
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:136:4 | 104 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 133 | Item::<T, I>::insert(collection, item, &details); | ---------- value moved here ... 136 | collection, | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 133 | Item::<T, I>::insert(collection.clone(), item, &details); | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L133
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:133:24 | 104 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 128 | !CollectionApprovals::<T, I>::contains_key((collection, &details.owner, &delegate)), | ---------- value moved here ... 133 | Item::<T, I>::insert(collection, item, &details); | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 128 | !CollectionApprovals::<T, I>::contains_key((collection.clone(), &details.owner, &delegate)), | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L128
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:128:48 | 104 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 108 | let mut details = Item::<T, I>::get(collection, item).ok_or(Error::<T, I>::UnknownItem)?; | ---------- value moved here ... 128 | !CollectionApprovals::<T, I>::contains_key((collection, &details.owner, &delegate)), | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 108 | let mut details = Item::<T, I>::get(collection.clone(), item).ok_or(Error::<T, I>::UnknownItem)?; | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L79
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:79:4 | 48 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 76 | Item::<T, I>::insert(collection, item, &details); | ---------- value moved here ... 79 | collection, | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 76 | Item::<T, I>::insert(collection.clone(), item, &details); | ++++++++
borrow of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L59
error[E0382]: borrow of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:59:55 | 48 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 57 | let mut details = Item::<T, I>::get(collection, item).ok_or(Error::<T, I>::UnknownItem)?; | ---------- value moved here 58 | 59 | let collection_config = Self::get_collection_config(&collection)?; | ^^^^^^^^^^^ value borrowed here after move | help: consider cloning the value if the performance cost is acceptable | 57 | let mut details = Item::<T, I>::get(collection.clone(), item).ok_or(Error::<T, I>::UnknownItem)?; | ++++++++
borrow of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L221
error[E0382]: borrow of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:221:55 | 211 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 219 | ensure!(AccountBalance::<T, I>::get(collection, &owner) > 0, Error::<T, I>::NoItemOwned); | ---------- value moved here 220 | 221 | let collection_config = Self::get_collection_config(&collection)?; | ^^^^^^^^^^^ value borrowed here after move | help: consider cloning the value if the performance cost is acceptable | 219 | ensure!(AccountBalance::<T, I>::get(collection.clone(), &owner) > 0, Error::<T, I>::NoItemOwned); | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L183
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:183:4 | 160 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 180 | Item::<T, I>::insert(collection, item, &details); | ---------- value moved here ... 183 | collection, | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 180 | Item::<T, I>::insert(collection.clone(), item, &details); | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L180
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:180:24 | 160 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 164 | Item::<T, I>::get(collection, item).ok_or(Error::<T, I>::UnknownCollection)?; | ---------- value moved here ... 170 | CollectionApprovals::<T, I>::iter_prefix((collection, &check_origin)) | ---------- value moved here ... 180 | Item::<T, I>::insert(collection, item, &details); | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 170 | CollectionApprovals::<T, I>::iter_prefix((collection.clone(), &check_origin)) | ++++++++ help: consider cloning the value if the performance cost is acceptable | 164 | Item::<T, I>::get(collection.clone(), item).ok_or(Error::<T, I>::UnknownCollection)?; | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L170
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:170:47 | 160 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 164 | Item::<T, I>::get(collection, item).ok_or(Error::<T, I>::UnknownCollection)?; | ---------- value moved here ... 170 | CollectionApprovals::<T, I>::iter_prefix((collection, &check_origin)) | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 164 | Item::<T, I>::get(collection.clone(), item).ok_or(Error::<T, I>::UnknownCollection)?; | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L136
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:136:4 | 104 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 133 | Item::<T, I>::insert(collection, item, &details); | ---------- value moved here ... 136 | collection, | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 133 | Item::<T, I>::insert(collection.clone(), item, &details); | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L133
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:133:24 | 104 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 128 | !CollectionApprovals::<T, I>::contains_key((collection, &details.owner, &delegate)), | ---------- value moved here ... 133 | Item::<T, I>::insert(collection, item, &details); | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 128 | !CollectionApprovals::<T, I>::contains_key((collection.clone(), &details.owner, &delegate)), | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L128
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:128:48 | 104 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 108 | let mut details = Item::<T, I>::get(collection, item).ok_or(Error::<T, I>::UnknownItem)?; | ---------- value moved here ... 128 | !CollectionApprovals::<T, I>::contains_key((collection, &details.owner, &delegate)), | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 108 | let mut details = Item::<T, I>::get(collection.clone(), item).ok_or(Error::<T, I>::UnknownItem)?; | ++++++++
use of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L79
error[E0382]: use of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:79:4 | 48 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 76 | Item::<T, I>::insert(collection, item, &details); | ---------- value moved here ... 79 | collection, | ^^^^^^^^^^ value used here after move | help: consider cloning the value if the performance cost is acceptable | 76 | Item::<T, I>::insert(collection.clone(), item, &details); | ++++++++
borrow of moved value: `collection`: pallets/nfts/src/features/approvals.rs#L59
error[E0382]: borrow of moved value: `collection` --> pallets/nfts/src/features/approvals.rs:59:55 | 48 | collection: T::CollectionId, | ---------- move occurs because `collection` has type `<T as pallet::Config<I>>::CollectionId`, which does not implement the `Copy` trait ... 57 | let mut details = Item::<T, I>::get(collection, item).ok_or(Error::<T, I>::UnknownItem)?; | ---------- value moved here 58 | 59 | let collection_config = Self::get_collection_config(&collection)?; | ^^^^^^^^^^^ value borrowed here after move | help: consider cloning the value if the performance cost is acceptable | 57 | let mut details = Item::<T, I>::get(collection.clone(), item).ok_or(Error::<T, I>::UnknownItem)?; | ++++++++
Validate PR title for conventional commit compliance
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
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; ... | 29 | | fn read(request: Self::Read) -> Self::Result; 30 | | } | |_^ | = note: requested on the command line with `-W missing-docs`
missing documentation for a type alias: extension/src/lib.rs#L38
warning: missing documentation for a type alias --> extension/src/lib.rs:38:1 | 38 | pub type ContractWeightsOf<T> = <T as pallet_contracts::Config>::WeightInfo; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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; ... | 229 | | } 230 | | } | |_^ | = note: requested on the command line with `-W missing-docs`
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
the following explicit lifetimes could be elided: 'a: extension/src/environment.rs#L185
warning: the following explicit lifetimes could be elided: 'a --> extension/src/environment.rs:185:6 | 185 | impl<'a, E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'a, E> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 185 - impl<'a, E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'a, E> { 185 + impl<E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'_, E> { |
the following explicit lifetimes could be elided: 'a, 'b: extension/src/environment.rs#L145
warning: the following explicit lifetimes could be elided: 'a, 'b --> extension/src/environment.rs:145:6 | 145 | impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufOut | ^^ ^^ 146 | for Env<'a, 'b, E, BufInBufOutState> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 145 ~ impl<E: pallet_contracts::chain_extension::Ext> BufOut 146 ~ for Env<'_, '_, E, BufInBufOutState> |
the following explicit lifetimes could be elided: 'a, 'b: extension/src/environment.rs#L114
warning: the following explicit lifetimes could be elided: 'a, 'b --> extension/src/environment.rs:114:6 | 114 | impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufIn for Env<'a, 'b, E, BufInBufOutState> { | ^^ ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 114 - impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufIn for Env<'a, 'b, E, BufInBufOutState> { 114 + impl<E: pallet_contracts::chain_extension::Ext> BufIn for Env<'_, '_, E, BufInBufOutState> { |
missing documentation for an associated function: runtime/common/src/lib.rs#L127
warning: missing documentation for an associated function --> runtime/common/src/lib.rs:127:3 | 127 | 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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/common/src/xcm/mod.rs#L1
warning: missing documentation for a module --> runtime/common/src/xcm/mod.rs:1:1 | 1 | pub mod nonfungibles_adapter; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a function: runtime/common/src/lib.rs#L54
warning: missing documentation for a function --> runtime/common/src/lib.rs:54:1 | 54 | pub const fn deposit(items: u32, bytes: u32) -> Balance { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a constant: runtime/common/src/lib.rs#L51
warning: missing documentation for a constant --> runtime/common/src/lib.rs:51:1 | 51 | pub const MICROUNIT: Balance = UNIT / 1_000_000; // 10_000 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a constant: runtime/common/src/lib.rs#L50
warning: missing documentation for a constant --> runtime/common/src/lib.rs:50:1 | 50 | pub const MILLIUNIT: Balance = UNIT / 1_000; // 10_000_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 UNIT: Balance = 10_000_000_000; // 10 decimals | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a constant: runtime/common/src/lib.rs#L33
warning: missing documentation for a constant --> runtime/common/src/lib.rs:33:1 | 33 | pub const DAYS: BlockNumber = HOURS * 24; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a constant: runtime/common/src/lib.rs#L32
warning: missing documentation for a constant --> runtime/common/src/lib.rs:32:1 | 32 | pub const HOURS: BlockNumber = MINUTES * 60; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a constant: runtime/common/src/lib.rs#L24
warning: missing documentation for a constant --> runtime/common/src/lib.rs:24:1 | 24 | pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a module: runtime/common/src/lib.rs#L9
warning: missing documentation for a module --> runtime/common/src/lib.rs:9:1 | 9 | pub mod xcm; | ^^^^^^^^^^^
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 ... | 138 | | } 139 | | } | |_^ | = note: requested on the command line with `-W missing-docs`
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; ... | 29 | | fn read(request: Self::Read) -> Self::Result; 30 | | } | |_^ | = note: requested on the command line with `-W missing-docs`
missing documentation for a type alias: extension/src/lib.rs#L38
warning: missing documentation for a type alias --> extension/src/lib.rs:38:1 | 38 | pub type ContractWeightsOf<T> = <T as pallet_contracts::Config>::WeightInfo; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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; ... | 229 | | } 230 | | } | |_^ | = note: requested on the command line with `-W missing-docs`
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
the following explicit lifetimes could be elided: 'a: extension/src/environment.rs#L185
warning: the following explicit lifetimes could be elided: 'a --> extension/src/environment.rs:185:6 | 185 | impl<'a, E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'a, E> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 185 - impl<'a, E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'a, E> { 185 + impl<E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'_, E> { |
the following explicit lifetimes could be elided: 'a, 'b: extension/src/environment.rs#L145
warning: the following explicit lifetimes could be elided: 'a, 'b --> extension/src/environment.rs:145:6 | 145 | impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufOut | ^^ ^^ 146 | for Env<'a, 'b, E, BufInBufOutState> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 145 ~ impl<E: pallet_contracts::chain_extension::Ext> BufOut 146 ~ for Env<'_, '_, E, BufInBufOutState> |
the following explicit lifetimes could be elided: 'a, 'b: extension/src/environment.rs#L114
warning: the following explicit lifetimes could be elided: 'a, 'b --> extension/src/environment.rs:114:6 | 114 | impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufIn for Env<'a, 'b, E, BufInBufOutState> { | ^^ ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 114 - impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufIn for Env<'a, 'b, E, BufInBufOutState> { 114 + impl<E: pallet_contracts::chain_extension::Ext> BufIn for Env<'_, '_, E, BufInBufOutState> { |
missing documentation for an associated function: runtime/common/src/lib.rs#L127
warning: missing documentation for an associated function --> runtime/common/src/lib.rs:127:3 | 127 | 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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:78:2 | 78 | / parameter_types! { 79 | | // One storage item; key size 32, value size 8; . 80 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 81 | | // Additional storage item size of 33 bytes. ... | 87 | | pub const MaxPending: u16 = 32; 88 | | } | |_____^ | = 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/common/src/xcm/mod.rs#L1
warning: missing documentation for a module --> runtime/common/src/xcm/mod.rs:1:1 | 1 | pub mod nonfungibles_adapter; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a function: runtime/common/src/lib.rs#L54
warning: missing documentation for a function --> runtime/common/src/lib.rs:54:1 | 54 | pub const fn deposit(items: u32, bytes: u32) -> Balance { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a constant: runtime/common/src/lib.rs#L51
warning: missing documentation for a constant --> runtime/common/src/lib.rs:51:1 | 51 | pub const MICROUNIT: Balance = UNIT / 1_000_000; // 10_000 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a constant: runtime/common/src/lib.rs#L50
warning: missing documentation for a constant --> runtime/common/src/lib.rs:50:1 | 50 | pub const MILLIUNIT: Balance = UNIT / 1_000; // 10_000_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 UNIT: Balance = 10_000_000_000; // 10 decimals | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a constant: runtime/common/src/lib.rs#L33
warning: missing documentation for a constant --> runtime/common/src/lib.rs:33:1 | 33 | pub const DAYS: BlockNumber = HOURS * 24; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a constant: runtime/common/src/lib.rs#L32
warning: missing documentation for a constant --> runtime/common/src/lib.rs:32:1 | 32 | pub const HOURS: BlockNumber = MINUTES * 60; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a constant: runtime/common/src/lib.rs#L24
warning: missing documentation for a constant --> runtime/common/src/lib.rs:24:1 | 24 | pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a module: runtime/common/src/lib.rs#L9
warning: missing documentation for a module --> runtime/common/src/lib.rs:9:1 | 9 | pub mod xcm; | ^^^^^^^^^^^
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 ... | 138 | | } 139 | | } | |_^ | = note: requested on the command line with `-W missing-docs`