feat(api/nonfungibles): pallet + devnet runtime #1829
Triggered via pull request
November 19, 2024 06:10
chungquantin
synchronize
#339
Status
Success
Total duration
6m 37s
Artifacts
–
lint-pr.yml
on: pull_request_target
Validate PR title for conventional commit compliance
2s
Annotations
30 errors and 688 warnings
this function takes 3 arguments but 5 arguments were supplied:
pallets/api/src/nonfungibles/mod.rs#L327
error[E0061]: this function takes 3 arguments but 5 arguments were supplied
--> pallets/api/src/nonfungibles/mod.rs:327:20
|
327 | #[pallet::weight(NftsWeightInfoOf::<T>::destroy(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
331 | witness.item_holders,
| -------------------- unexpected argument #4
332 | witness.allowances,
| ------------------ unexpected argument #5
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:56:5
|
56 | fn destroy(m: u32, c: u32, a: u32, ) -> Weight;
| ^^^^^^^
help: remove the extra arguments
|
330 - witness.attributes,
331 - witness.item_holders,
330 + witness.attributes,
|
|
no field `allowances` on type `&pallet_nfts::DestroyWitness`:
pallets/api/src/nonfungibles/mod.rs#L332
error[E0609]: no field `allowances` on type `&pallet_nfts::DestroyWitness`
--> pallets/api/src/nonfungibles/mod.rs:332:21
|
332 | witness.allowances,
| ^^^^^^^^^^ unknown field
|
= note: available fields are: `item_metadatas`, `item_configs`, `attributes`
|
no field `item_holders` on type `&pallet_nfts::DestroyWitness`:
pallets/api/src/nonfungibles/mod.rs#L331
error[E0609]: no field `item_holders` on type `&pallet_nfts::DestroyWitness`
--> pallets/api/src/nonfungibles/mod.rs:331:21
|
331 | witness.item_holders,
| ^^^^^^^^^^^^ unknown field
|
= note: available fields are: `item_metadatas`, `item_configs`, `attributes`
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L258
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:258:7
|
258 | NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:80:5
|
80 | fn cancel_approval() -> Weight;
| ^^^^^^^^^^^^^^^
help: remove the extra argument
|
258 - NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32)
258 + NftsWeightInfoOf::<T>::cancel_approval()
|
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L257
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:257:13
|
257 | NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32) +
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:79:5
|
79 | fn approve_transfer() -> Weight;
| ^^^^^^^^^^^^^^^^
help: remove the extra argument
|
257 - NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32) +
257 + NftsWeightInfoOf::<T>::approve_transfer() +
|
|
no function or associated item named `item_metadata` found for struct `pallet_nfts::Pallet` in the current scope:
pallets/api/src/nonfungibles/mod.rs#L583
error[E0599]: no function or associated item named `item_metadata` found for struct `pallet_nfts::Pallet` in the current scope
--> pallets/api/src/nonfungibles/mod.rs:583:19
|
583 | NftsOf::<T>::item_metadata(collection, item).map(|metadata| metadata.into()),
| ^^^^^^^^^^^^^ function or associated item not found in `Pallet<T, <T as Config>::NftsInstance>`
|
= help: items from traits can only be used if the trait is implemented and in scope
note: `nonfungibles::weights::WeightInfo` defines an item `item_metadata`, perhaps you need to implement it
--> pallets/api/src/nonfungibles/weights.rs:34:1
|
34 | pub trait WeightInfo {
| ^^^^^^^^^^^^^^^^^^^^
help: there is an associated function `set_item_metadata` with a similar name
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/traits/tokens/nonfungibles_v2.rs:316:2
|
316 | / fn set_item_metadata(
317 | | _who: Option<&AccountId>,
318 | | _collection: &Self::CollectionId,
319 | | _item: &Self::ItemId,
320 | | _data: &[u8],
321 | | ) -> DispatchResult {
| |_______________________^
|
no function or associated item named `check_allowance` found for struct `pallet_nfts::Pallet` in the current scope:
pallets/api/src/nonfungibles/mod.rs#L572
error[E0599]: no function or associated item named `check_allowance` found for struct `pallet_nfts::Pallet` in the current scope
--> pallets/api/src/nonfungibles/mod.rs:572:19
|
572 | NftsOf::<T>::check_allowance(&collection, &item, &owner, &operator).is_ok(),
| ^^^^^^^^^^^^^^^ function or associated item not found in `Pallet<T, <T as Config>::NftsInstance>`
|
no function or associated item named `collection_items` found for struct `pallet_nfts::Pallet` in the current scope:
pallets/api/src/nonfungibles/mod.rs#L567
error[E0599]: no function or associated item named `collection_items` found for struct `pallet_nfts::Pallet` in the current scope
--> pallets/api/src/nonfungibles/mod.rs:567:19
|
567 | NftsOf::<T>::collection_items(collection).unwrap_or_default() as u128,
| ^^^^^^^^^^^^^^^^ function or associated item not found in `Pallet<T, <T as Config>::NftsInstance>`
|
help: there is an associated function `collections` with a similar name
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/traits/tokens/nonfungibles_v2.rs:171:2
|
171 | fn collections() -> Self::CollectionsIterator;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L290
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:290:5
|
290 | NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:80:5
|
80 | fn cancel_approval() -> Weight;
| ^^^^^^^^^^^^^^^
help: remove the extra argument
|
290 - NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32)
290 + NftsWeightInfoOf::<T>::cancel_approval()
|
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L288
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:288:20
|
288 | e.with_weight(NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:80:5
|
80 | fn cancel_approval() -> Weight;
| ^^^^^^^^^^^^^^^
help: remove the extra argument
|
288 - e.with_weight(NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32))
288 + e.with_weight(NftsWeightInfoOf::<T>::cancel_approval())
|
|
mismatched types:
pallets/api/src/nonfungibles/mod.rs#L284
error[E0308]: mismatched types
--> pallets/api/src/nonfungibles/mod.rs:284:6
|
281 | NftsOf::<T>::cancel_approval(
| ---------------------------- arguments to this function are incorrect
...
284 | item,
| ^^^^ expected associated type, found `Option<<T as Config<...>>::ItemId>`
|
= note: expected associated type `<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId`
found enum `std::option::Option<<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId>`
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/lib.rs:1328:10
|
1328 | pub fn cancel_approval(
| ^^^^^^^^^^^^^^^
help: consider using `Option::expect` to unwrap the `std::option::Option<<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId>` value, panicking if the value is an `Option::None`
|
284 | item.expect("REASON"),
| +++++++++++++++++
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L279
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:279:5
|
279 | NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:79:5
|
79 | fn approve_transfer() -> Weight;
| ^^^^^^^^^^^^^^^^
help: remove the extra argument
|
279 - NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32)
279 + NftsWeightInfoOf::<T>::approve_transfer()
|
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L277
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:277:20
|
277 | e.with_weight(NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:79:5
|
79 | fn approve_transfer() -> Weight;
| ^^^^^^^^^^^^^^^^
help: remove the extra argument
|
277 - e.with_weight(NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32))
277 + e.with_weight(NftsWeightInfoOf::<T>::approve_transfer())
|
|
mismatched types:
pallets/api/src/nonfungibles/mod.rs#L272
error[E0308]: mismatched types
--> pallets/api/src/nonfungibles/mod.rs:272:6
|
269 | NftsOf::<T>::approve_transfer(
| ----------------------------- arguments to this function are incorrect
...
272 | item,
| ^^^^ expected associated type, found `Option<<T as Config<...>>::ItemId>`
|
= note: expected associated type `<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId`
found enum `std::option::Option<<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId>`
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/lib.rs:1292:10
|
1292 | pub fn approve_transfer(
| ^^^^^^^^^^^^^^^^
help: consider using `Option::expect` to unwrap the `std::option::Option<<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId>` value, panicking if the value is an `Option::None`
|
272 | item.expect("REASON"),
| +++++++++++++++++
|
cannot find type `AccountBalance` in crate `pallet_nfts`:
pallets/api/src/nonfungibles/mod.rs#L40
error[E0412]: cannot find type `AccountBalance` in crate `pallet_nfts`
--> pallets/api/src/nonfungibles/mod.rs:40:52
|
40 | pub(super) type AccountBalanceOf<T> = pallet_nfts::AccountBalance<T, NftsInstanceOf<T>>;
| ^^^^^^^^^^^^^^ not found in `pallet_nfts`
|
this function takes 3 arguments but 5 arguments were supplied:
pallets/api/src/nonfungibles/mod.rs#L327
error[E0061]: this function takes 3 arguments but 5 arguments were supplied
--> pallets/api/src/nonfungibles/mod.rs:327:20
|
327 | #[pallet::weight(NftsWeightInfoOf::<T>::destroy(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
331 | witness.item_holders,
| -------------------- unexpected argument #4
332 | witness.allowances,
| ------------------ unexpected argument #5
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:56:5
|
56 | fn destroy(m: u32, c: u32, a: u32, ) -> Weight;
| ^^^^^^^
help: remove the extra arguments
|
330 - witness.attributes,
331 - witness.item_holders,
330 + witness.attributes,
|
|
no field `allowances` on type `&pallet_nfts::DestroyWitness`:
pallets/api/src/nonfungibles/mod.rs#L332
error[E0609]: no field `allowances` on type `&pallet_nfts::DestroyWitness`
--> pallets/api/src/nonfungibles/mod.rs:332:21
|
332 | witness.allowances,
| ^^^^^^^^^^ unknown field
|
= note: available fields are: `item_metadatas`, `item_configs`, `attributes`
|
no field `item_holders` on type `&pallet_nfts::DestroyWitness`:
pallets/api/src/nonfungibles/mod.rs#L331
error[E0609]: no field `item_holders` on type `&pallet_nfts::DestroyWitness`
--> pallets/api/src/nonfungibles/mod.rs:331:21
|
331 | witness.item_holders,
| ^^^^^^^^^^^^ unknown field
|
= note: available fields are: `item_metadatas`, `item_configs`, `attributes`
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L258
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:258:7
|
258 | NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:80:5
|
80 | fn cancel_approval() -> Weight;
| ^^^^^^^^^^^^^^^
help: remove the extra argument
|
258 - NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32)
258 + NftsWeightInfoOf::<T>::cancel_approval()
|
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L257
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:257:13
|
257 | NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32) +
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:79:5
|
79 | fn approve_transfer() -> Weight;
| ^^^^^^^^^^^^^^^^
help: remove the extra argument
|
257 - NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32) +
257 + NftsWeightInfoOf::<T>::approve_transfer() +
|
|
no function or associated item named `item_metadata` found for struct `pallet_nfts::Pallet` in the current scope:
pallets/api/src/nonfungibles/mod.rs#L583
error[E0599]: no function or associated item named `item_metadata` found for struct `pallet_nfts::Pallet` in the current scope
--> pallets/api/src/nonfungibles/mod.rs:583:19
|
583 | NftsOf::<T>::item_metadata(collection, item).map(|metadata| metadata.into()),
| ^^^^^^^^^^^^^ function or associated item not found in `Pallet<T, <T as Config>::NftsInstance>`
|
= help: items from traits can only be used if the trait is implemented and in scope
note: `nonfungibles::weights::WeightInfo` defines an item `item_metadata`, perhaps you need to implement it
--> pallets/api/src/nonfungibles/weights.rs:34:1
|
34 | pub trait WeightInfo {
| ^^^^^^^^^^^^^^^^^^^^
help: there is an associated function `set_item_metadata` with a similar name
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/traits/tokens/nonfungibles_v2.rs:316:2
|
316 | / fn set_item_metadata(
317 | | _who: Option<&AccountId>,
318 | | _collection: &Self::CollectionId,
319 | | _item: &Self::ItemId,
320 | | _data: &[u8],
321 | | ) -> DispatchResult {
| |_______________________^
|
no function or associated item named `check_allowance` found for struct `pallet_nfts::Pallet` in the current scope:
pallets/api/src/nonfungibles/mod.rs#L572
error[E0599]: no function or associated item named `check_allowance` found for struct `pallet_nfts::Pallet` in the current scope
--> pallets/api/src/nonfungibles/mod.rs:572:19
|
572 | NftsOf::<T>::check_allowance(&collection, &item, &owner, &operator).is_ok(),
| ^^^^^^^^^^^^^^^ function or associated item not found in `Pallet<T, <T as Config>::NftsInstance>`
|
no function or associated item named `collection_items` found for struct `pallet_nfts::Pallet` in the current scope:
pallets/api/src/nonfungibles/mod.rs#L567
error[E0599]: no function or associated item named `collection_items` found for struct `pallet_nfts::Pallet` in the current scope
--> pallets/api/src/nonfungibles/mod.rs:567:19
|
567 | NftsOf::<T>::collection_items(collection).unwrap_or_default() as u128,
| ^^^^^^^^^^^^^^^^ function or associated item not found in `Pallet<T, <T as Config>::NftsInstance>`
|
help: there is an associated function `collections` with a similar name
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/frame-support-36.0.0/src/traits/tokens/nonfungibles_v2.rs:171:2
|
171 | fn collections() -> Self::CollectionsIterator;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L290
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:290:5
|
290 | NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:80:5
|
80 | fn cancel_approval() -> Weight;
| ^^^^^^^^^^^^^^^
help: remove the extra argument
|
290 - NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32)
290 + NftsWeightInfoOf::<T>::cancel_approval()
|
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L288
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:288:20
|
288 | e.with_weight(NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:80:5
|
80 | fn cancel_approval() -> Weight;
| ^^^^^^^^^^^^^^^
help: remove the extra argument
|
288 - e.with_weight(NftsWeightInfoOf::<T>::cancel_approval(item.is_some() as u32))
288 + e.with_weight(NftsWeightInfoOf::<T>::cancel_approval())
|
|
mismatched types:
pallets/api/src/nonfungibles/mod.rs#L284
error[E0308]: mismatched types
--> pallets/api/src/nonfungibles/mod.rs:284:6
|
281 | NftsOf::<T>::cancel_approval(
| ---------------------------- arguments to this function are incorrect
...
284 | item,
| ^^^^ expected associated type, found `Option<<T as Config<...>>::ItemId>`
|
= note: expected associated type `<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId`
found enum `std::option::Option<<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId>`
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/lib.rs:1328:10
|
1328 | pub fn cancel_approval(
| ^^^^^^^^^^^^^^^
help: consider using `Option::expect` to unwrap the `std::option::Option<<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId>` value, panicking if the value is an `Option::None`
|
284 | item.expect("REASON"),
| +++++++++++++++++
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L279
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:279:5
|
279 | NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:79:5
|
79 | fn approve_transfer() -> Weight;
| ^^^^^^^^^^^^^^^^
help: remove the extra argument
|
279 - NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32)
279 + NftsWeightInfoOf::<T>::approve_transfer()
|
|
this function takes 0 arguments but 1 argument was supplied:
pallets/api/src/nonfungibles/mod.rs#L277
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> pallets/api/src/nonfungibles/mod.rs:277:20
|
277 | e.with_weight(NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------------------- unexpected argument of type `u32`
|
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/weights.rs:79:5
|
79 | fn approve_transfer() -> Weight;
| ^^^^^^^^^^^^^^^^
help: remove the extra argument
|
277 - e.with_weight(NftsWeightInfoOf::<T>::approve_transfer(item.is_some() as u32))
277 + e.with_weight(NftsWeightInfoOf::<T>::approve_transfer())
|
|
mismatched types:
pallets/api/src/nonfungibles/mod.rs#L272
error[E0308]: mismatched types
--> pallets/api/src/nonfungibles/mod.rs:272:6
|
269 | NftsOf::<T>::approve_transfer(
| ----------------------------- arguments to this function are incorrect
...
272 | item,
| ^^^^ expected associated type, found `Option<<T as Config<...>>::ItemId>`
|
= note: expected associated type `<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId`
found enum `std::option::Option<<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId>`
note: associated function defined here
--> /home/runner/work/pop-node/pop-node/pallets/nfts/src/lib.rs:1292:10
|
1292 | pub fn approve_transfer(
| ^^^^^^^^^^^^^^^^
help: consider using `Option::expect` to unwrap the `std::option::Option<<T as pallet_nfts::Config<<T as nonfungibles::pallet::Config>::NftsInstance>>::ItemId>` value, panicking if the value is an `Option::None`
|
272 | item.expect("REASON"),
| +++++++++++++++++
|
cannot find type `AccountBalance` in crate `pallet_nfts`:
pallets/api/src/nonfungibles/mod.rs#L40
error[E0412]: cannot find type `AccountBalance` in crate `pallet_nfts`
--> pallets/api/src/nonfungibles/mod.rs:40:52
|
40 | pub(super) type AccountBalanceOf<T> = pallet_nfts::AccountBalance<T, NftsInstanceOf<T>>;
| ^^^^^^^^^^^^^^ not found in `pallet_nfts`
|
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 | value: BoundedVec<u8, T::ValueLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | attribute: PalletAttributes<T::CollectionId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L592
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:592:4
|
592 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | namespace: AttributeNamespace<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
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 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L581
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:581:4
|
581 | deadline: BlockNumberFor<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | price: Option<PriceWithDirection<ItemPrice<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 | received_item_owner: 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 | received_item: T::ItemId,
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | received_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | sent_item_owner: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L575
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:575:4
|
575 | sent_item: T::ItemId,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L574
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:574:4
|
574 | sent_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | deadline: BlockNumberFor<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | price: Option<PriceWithDirection<ItemPrice<T, I>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | desired_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L567
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:567:4
|
567 | desired_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L566
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:566:4
|
566 | offered_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:4
|
565 | offered_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | deadline: BlockNumberFor<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | price: Option<PriceWithDirection<ItemPrice<T, I>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | desired_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L558
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:558:4
|
558 | desired_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L557
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:557:4
|
557 | offered_item: T::ItemId,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
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:4
|
556 | offered_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:4
|
552 | amount: DepositBalanceOf<T, I>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L551
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:551:4
|
551 | receiver: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
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:4
|
550 | sender: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L549
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:549:4
|
549 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L548
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:548:4
|
548 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L544
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:544:4
|
544 | buyer: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L543
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:543:4
|
543 | seller: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L542
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:542:4
|
542 | price: ItemPrice<T, I>,
| ^^^^^^^^^^^^^^^^^^^^^^
|
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 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
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 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L537
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:537:51
|
537 | ItemPriceRemoved { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L537
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:537:22
|
537 | ItemPriceRemoved { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | whitelisted_buyer: Option<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | price: ItemPrice<T, I>,
| ^^^^^^^^^^^^^^^^^^^^^^
|
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 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L531
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:531:4
|
531 | 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:33
|
528 | NextCollectionIdIncremented { next_id: Option<T::CollectionId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:35
|
526 | CollectionMintSettingsUpdated { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L524
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:524:57
|
524 | CollectionMaxSupplySet { collection: T::CollectionId, max_supply: u32 },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L524
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:524:28
|
524 | CollectionMaxSupplySet { collection: T::CollectionId, max_supply: u32 },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L522
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:522:51
|
522 | OwnershipAcceptanceChanged { who: T::AccountId, maybe_collection: Option<T::CollectionId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:4
|
519 | delegate: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L518
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:518:4
|
518 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L517
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:517:4
|
517 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L513
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:513:4
|
513 | delegate: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L512
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:512:4
|
512 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
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:4
|
511 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:4
|
507 | namespace: AttributeNamespace<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L506
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:506:4
|
506 | key: BoundedVec<u8, T::KeyLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:4
|
505 | maybe_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L504
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:504:4
|
504 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | namespace: AttributeNamespace<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | value: BoundedVec<u8, T::ValueLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L498
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:498:4
|
498 | key: BoundedVec<u8, T::KeyLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L497
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:497:4
|
497 | maybe_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:46
|
493 | Redeposited { collection: T::CollectionId, successful_items: Vec<T::ItemId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:17
|
493 | Redeposited { collection: T::CollectionId, successful_items: Vec<T::ItemId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:54
|
491 | ItemMetadataCleared { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
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:25
|
491 | ItemMetadataCleared { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L488
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:488:4
|
488 | data: BoundedVec<u8, T::StringLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L487
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:487:4
|
487 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L486
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:486:4
|
486 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:31
|
483 | CollectionMetadataCleared { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L481
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:481:56
|
481 | CollectionMetadataSet { collection: T::CollectionId, data: BoundedVec<u8, T::StringLimit> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L481
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:481:27
|
481 | CollectionMetadataSet { collection: T::CollectionId, data: BoundedVec<u8, T::StringLimit> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:29
|
479 | CollectionConfigChanged { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:73
|
477 | AllApprovalsCancelled { collection: T::CollectionId, item: T::ItemId, 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:56
|
477 | AllApprovalsCancelled { collection: T::CollectionId, item: T::ItemId, 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:27
|
477 | AllApprovalsCancelled { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | delegate: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
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 | owner: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^
|
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#L466
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:466:4
|
466 | deadline: Option<BlockNumberFor<T>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L465
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:465:4
|
465 | delegate: 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:4
|
464 | owner: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L463
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:463:4
|
463 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L462
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:462:4
|
462 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L457
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:457:4
|
457 | freezer: Option<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L456
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:456:4
|
456 | admin: Option<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:4
|
455 | issuer: Option<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L454
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:454:4
|
454 | 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 | OwnerChanged { collection: T::CollectionId, new_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 | OwnerChanged { collection: T::CollectionId, new_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:22
|
449 | CollectionLocked { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L446
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:446:4
|
446 | lock_attributes: bool,
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L445
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:445:4
|
445 | lock_metadata: bool,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L444
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:444:4
|
444 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L443
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:443:4
|
443 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L440
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:440:55
|
440 | ItemTransferUnlocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L440
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:440:26
|
440 | ItemTransferUnlocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L438
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:438:53
|
438 | ItemTransferLocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L438
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:438:24
|
438 | ItemTransferLocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L436
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:436:58
|
436 | Burned { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L436
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:436:41
|
436 | Burned { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L436
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:436:12
|
436 | Burned { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L433
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:433:4
|
433 | to: T::AccountId,
| ^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L432
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:432:4
|
432 | from: T::AccountId,
| ^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L431
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:431:4
|
431 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L430
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:430:4
|
430 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L427
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:427:58
|
427 | Issued { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L427
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:427:41
|
427 | Issued { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L427
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:427:12
|
427 | Issued { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L425
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:425:15
|
425 | Destroyed { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L423
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:423:47
|
423 | ForceCreated { collection: T::CollectionId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L423
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:423:18
|
423 | ForceCreated { collection: T::CollectionId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L421
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:421:65
|
421 | Created { collection: T::CollectionId, creator: T::AccountId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L421
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:421:42
|
421 | Created { collection: T::CollectionId, creator: T::AccountId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L421
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:421:13
|
421 | 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/common_functions.rs#L73
warning: missing documentation for an associated function
--> pallets/nfts/src/common_functions.rs:73:2
|
73 | 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#L1099
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1099:39
|
1099 | 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#L1099
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1099:26
|
1099 | 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#L1087
warning: `if` chain can be rewritten with `match`
--> pallets/nfts/src/lib.rs:1087:5
|
1087 | / if old > deposit {
1088 | | T::Currency::unreserve(&details.deposit.account, old - deposit);
1089 | | } else if deposit > old {
1090 | | if T::Currency::reserve(&details.deposit.account, deposit - old).is_err() {
... |
1096 | | continue
1097 | | }
| |_________________^
|
= 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#L1082
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1082:60
|
1082 | 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#L1082
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1082:47
|
1082 | 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#L1071
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1071:29
|
1071 | 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#L228
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:228:46
|
228 | 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#L227
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:227:54
|
227 | 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#L153
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:153:50
|
153 | 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#L152
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:152:54
|
152 | 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#L104
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:104:46
|
104 | 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#L104
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:104:33
|
104 | 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#L103
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:103:44
|
103 | 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#L103
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:103:31
|
103 | 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#L102
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:102:37
|
102 | 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#L102
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:102:24
|
102 | 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
|
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#L268
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:268:46
|
268 | 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#L268
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:268:33
|
268 | 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#L265
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:265:58
|
265 | 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#L265
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:265:45
|
265 | 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#L264
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:264:46
|
264 | 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#L264
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:264:33
|
264 | 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#L263
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:263:44
|
263 | 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#L263
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:263:31
|
263 | 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#L261
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:261:37
|
261 | 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#L261
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:261:24
|
261 | 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#L242
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:242:72
|
242 | 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#L242
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:242:59
|
242 | 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#L228
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:228:50
|
228 | 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#L228
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:228:37
|
228 | 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#L224
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:224:4
|
224 | &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#L103
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:103:39
|
103 | 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#L103
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:103:26
|
103 | 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#L91
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:91:48
|
91 | 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#L91
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:91:35
|
91 | 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#L88
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:88:77
|
88 | 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#L88
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:88:64
|
88 | 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#L143
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:143:47
|
143 | 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#L142
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:142:39
|
142 | 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#L140
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:140:65
|
140 | 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
|
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
|
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
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L166
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:166:37
|
166 | 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#L166
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:166:24
|
166 | 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#L159
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:159:35
|
159 | 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#L159
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:159:22
|
159 | 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#L128
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:128:37
|
128 | 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#L128
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:128:24
|
128 | 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#L110
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:110:35
|
110 | 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#L110
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:110:22
|
110 | 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#L76
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:76:37
|
76 | 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#L76
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:76:24
|
76 | 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#L61
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/common_functions.rs:61:39
|
61 | 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#L48
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/common_functions.rs:48:32
|
48 | 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
|
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
|
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
|
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
|
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 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 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`
|
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`
|
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
|
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`
|
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 | value: BoundedVec<u8, T::ValueLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | attribute: PalletAttributes<T::CollectionId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L592
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:592:4
|
592 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | namespace: AttributeNamespace<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
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 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L581
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:581:4
|
581 | deadline: BlockNumberFor<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | price: Option<PriceWithDirection<ItemPrice<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 | received_item_owner: 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 | received_item: T::ItemId,
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | received_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | sent_item_owner: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L575
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:575:4
|
575 | sent_item: T::ItemId,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L574
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:574:4
|
574 | sent_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | deadline: BlockNumberFor<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | price: Option<PriceWithDirection<ItemPrice<T, I>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | desired_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L567
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:567:4
|
567 | desired_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L566
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:566:4
|
566 | offered_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:4
|
565 | offered_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | deadline: BlockNumberFor<T>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | price: Option<PriceWithDirection<ItemPrice<T, I>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | desired_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L558
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:558:4
|
558 | desired_collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L557
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:557:4
|
557 | offered_item: T::ItemId,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
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:4
|
556 | offered_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:4
|
552 | amount: DepositBalanceOf<T, I>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L551
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:551:4
|
551 | receiver: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
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:4
|
550 | sender: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L549
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:549:4
|
549 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L548
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:548:4
|
548 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L544
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:544:4
|
544 | buyer: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L543
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:543:4
|
543 | seller: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L542
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:542:4
|
542 | price: ItemPrice<T, I>,
| ^^^^^^^^^^^^^^^^^^^^^^
|
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 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
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 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L537
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:537:51
|
537 | ItemPriceRemoved { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L537
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:537:22
|
537 | ItemPriceRemoved { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | whitelisted_buyer: Option<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | price: ItemPrice<T, I>,
| ^^^^^^^^^^^^^^^^^^^^^^
|
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 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L531
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:531:4
|
531 | 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:33
|
528 | NextCollectionIdIncremented { next_id: Option<T::CollectionId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:35
|
526 | CollectionMintSettingsUpdated { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L524
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:524:57
|
524 | CollectionMaxSupplySet { collection: T::CollectionId, max_supply: u32 },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L524
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:524:28
|
524 | CollectionMaxSupplySet { collection: T::CollectionId, max_supply: u32 },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L522
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:522:51
|
522 | OwnershipAcceptanceChanged { who: T::AccountId, maybe_collection: Option<T::CollectionId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L522
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:522:32
|
522 | OwnershipAcceptanceChanged { who: T::AccountId, maybe_collection: Option<T::CollectionId> },
| ^^^^^^^^^^^^^^^^^
|
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:4
|
519 | delegate: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L518
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:518:4
|
518 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L517
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:517:4
|
517 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L513
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:513:4
|
513 | delegate: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L512
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:512:4
|
512 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
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:4
|
511 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:4
|
507 | namespace: AttributeNamespace<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L506
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:506:4
|
506 | key: BoundedVec<u8, T::KeyLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:4
|
505 | maybe_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L504
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:504:4
|
504 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | namespace: AttributeNamespace<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | value: BoundedVec<u8, T::ValueLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L498
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:498:4
|
498 | key: BoundedVec<u8, T::KeyLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L497
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:497:4
|
497 | maybe_item: Option<T::ItemId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L496
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:496:4
|
496 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:46
|
493 | Redeposited { collection: T::CollectionId, successful_items: Vec<T::ItemId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:17
|
493 | Redeposited { collection: T::CollectionId, successful_items: Vec<T::ItemId> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:54
|
491 | ItemMetadataCleared { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
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:25
|
491 | ItemMetadataCleared { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L488
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:488:4
|
488 | data: BoundedVec<u8, T::StringLimit>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L487
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:487:4
|
487 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L486
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:486:4
|
486 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:31
|
483 | CollectionMetadataCleared { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L481
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:481:56
|
481 | CollectionMetadataSet { collection: T::CollectionId, data: BoundedVec<u8, T::StringLimit> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L481
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:481:27
|
481 | CollectionMetadataSet { collection: T::CollectionId, data: BoundedVec<u8, T::StringLimit> },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:29
|
479 | CollectionConfigChanged { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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:73
|
477 | AllApprovalsCancelled { collection: T::CollectionId, item: T::ItemId, 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:56
|
477 | AllApprovalsCancelled { collection: T::CollectionId, item: T::ItemId, 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:27
|
477 | AllApprovalsCancelled { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 | delegate: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^^^^
|
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 | owner: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^
|
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#L466
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:466:4
|
466 | deadline: Option<BlockNumberFor<T>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L465
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:465:4
|
465 | delegate: 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:4
|
464 | owner: T::AccountId,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L463
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:463:4
|
463 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L462
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:462:4
|
462 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L457
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:457:4
|
457 | freezer: Option<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L456
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:456:4
|
456 | admin: Option<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:4
|
455 | issuer: Option<T::AccountId>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L454
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:454:4
|
454 | 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 | OwnerChanged { collection: T::CollectionId, new_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 | OwnerChanged { collection: T::CollectionId, new_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:22
|
449 | CollectionLocked { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L446
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:446:4
|
446 | lock_attributes: bool,
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L445
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:445:4
|
445 | lock_metadata: bool,
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L444
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:444:4
|
444 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L443
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:443:4
|
443 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L440
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:440:55
|
440 | ItemTransferUnlocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L440
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:440:26
|
440 | ItemTransferUnlocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L438
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:438:53
|
438 | ItemTransferLocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L438
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:438:24
|
438 | ItemTransferLocked { collection: T::CollectionId, item: T::ItemId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L436
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:436:58
|
436 | Burned { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L436
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:436:41
|
436 | Burned { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L436
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:436:12
|
436 | Burned { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L433
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:433:4
|
433 | to: T::AccountId,
| ^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L432
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:432:4
|
432 | from: T::AccountId,
| ^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L431
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:431:4
|
431 | item: T::ItemId,
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L430
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:430:4
|
430 | collection: T::CollectionId,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L427
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:427:58
|
427 | Issued { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L427
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:427:41
|
427 | Issued { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L427
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:427:12
|
427 | Issued { collection: T::CollectionId, item: T::ItemId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L425
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:425:15
|
425 | Destroyed { collection: T::CollectionId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L423
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:423:47
|
423 | ForceCreated { collection: T::CollectionId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L423
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:423:18
|
423 | ForceCreated { collection: T::CollectionId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L421
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:421:65
|
421 | Created { collection: T::CollectionId, creator: T::AccountId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L421
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:421:42
|
421 | Created { collection: T::CollectionId, creator: T::AccountId, owner: T::AccountId },
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
pallets/nfts/src/lib.rs#L421
warning: missing documentation for a struct field
--> pallets/nfts/src/lib.rs:421:13
|
421 | 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/common_functions.rs#L73
warning: missing documentation for an associated function
--> pallets/nfts/src/common_functions.rs:73:2
|
73 | 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#L1099
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1099:39
|
1099 | 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#L1099
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1099:26
|
1099 | 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#L1087
warning: `if` chain can be rewritten with `match`
--> pallets/nfts/src/lib.rs:1087:5
|
1087 | / if old > deposit {
1088 | | T::Currency::unreserve(&details.deposit.account, old - deposit);
1089 | | } else if deposit > old {
1090 | | if T::Currency::reserve(&details.deposit.account, deposit - old).is_err() {
... |
1096 | | continue
1097 | | }
| |_________________^
|
= 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#L1082
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1082:60
|
1082 | 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#L1082
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1082:47
|
1082 | 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#L1071
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/lib.rs:1071:29
|
1071 | 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#L228
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:228:46
|
228 | 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#L227
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:227:54
|
227 | 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#L153
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:153:50
|
153 | 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#L152
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:152:54
|
152 | 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#L104
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:104:46
|
104 | 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#L104
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:104:33
|
104 | 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#L103
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:103:44
|
103 | 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#L103
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:103:31
|
103 | 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#L102
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:102:37
|
102 | 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#L102
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/transfer.rs:102:24
|
102 | 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
|
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#L268
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:268:46
|
268 | 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#L268
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:268:33
|
268 | 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#L265
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:265:58
|
265 | 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#L265
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:265:45
|
265 | 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#L264
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:264:46
|
264 | 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#L264
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:264:33
|
264 | 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#L263
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:263:44
|
263 | 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#L263
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:263:31
|
263 | 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#L261
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:261:37
|
261 | 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#L261
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:261:24
|
261 | 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#L242
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:242:72
|
242 | 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#L242
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:242:59
|
242 | 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#L228
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:228:50
|
228 | 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#L228
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:228:37
|
228 | 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#L224
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:224:4
|
224 | &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#L103
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:103:39
|
103 | 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#L103
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:103:26
|
103 | 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#L91
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:91:48
|
91 | 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#L91
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:91:35
|
91 | 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#L88
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:88:77
|
88 | 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#L88
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_item.rs:88:64
|
88 | 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#L143
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:143:47
|
143 | 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#L142
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:142:39
|
142 | 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#L140
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/create_delete_collection.rs:140:65
|
140 | 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
|
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
|
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
|
the borrowed expression implements the required traits:
pallets/nfts/src/features/approvals.rs#L166
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:166:37
|
166 | 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#L166
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:166:24
|
166 | 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#L159
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:159:35
|
159 | 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#L159
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:159:22
|
159 | 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#L128
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:128:37
|
128 | 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#L128
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:128:24
|
128 | 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#L110
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:110:35
|
110 | 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#L110
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:110:22
|
110 | 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#L76
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:76:37
|
76 | 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#L76
warning: the borrowed expression implements the required traits
--> pallets/nfts/src/features/approvals.rs:76:24
|
76 | 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#L61
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/common_functions.rs:61:39
|
61 | 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#L48
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> pallets/nfts/src/common_functions.rs:48:32
|
48 | 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
|
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
|
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
|
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
|
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 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 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`
|
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`
|
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
|
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`
|