From 187059860dd671a0b5b986d865d839a424f38c56 Mon Sep 17 00:00:00 2001 From: Sacha Lansky Date: Mon, 24 Jul 2023 15:07:11 +0200 Subject: [PATCH] [fix lint warnings: Uniques pallet] fix clippy::missing_docs_in_private_items warnings (#14591) * Fix clippy::missing_docs_in_private_items * Fix clippy::missing_docs_in_private_items --------- Co-authored-by: parity-processbot <> --- substrate/frame/uniques/src/lib.rs | 2 ++ substrate/frame/uniques/src/types.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/substrate/frame/uniques/src/lib.rs b/substrate/frame/uniques/src/lib.rs index 95ef8111f1..1b75d0b078 100644 --- a/substrate/frame/uniques/src/lib.rs +++ b/substrate/frame/uniques/src/lib.rs @@ -57,8 +57,10 @@ pub use pallet::*; pub use types::*; pub use weights::WeightInfo; +/// The log target for this pallet. const LOG_TARGET: &str = "runtime::uniques"; +/// A type alias for the account ID type used in the dispatchable functions of this pallet. type AccountIdLookupOf = <::Lookup as StaticLookup>::Source; #[frame_support::pallet] diff --git a/substrate/frame/uniques/src/types.rs b/substrate/frame/uniques/src/types.rs index 5b13998153..a2e804f245 100644 --- a/substrate/frame/uniques/src/types.rs +++ b/substrate/frame/uniques/src/types.rs @@ -24,12 +24,16 @@ use frame_support::{ }; use scale_info::TypeInfo; +/// A type alias for handling balance deposits. pub(super) type DepositBalanceOf = <>::Currency as Currency<::AccountId>>::Balance; +/// A type alias representing the details of a collection. pub(super) type CollectionDetailsFor = CollectionDetails<::AccountId, DepositBalanceOf>; +/// A type alias for the details of a single item. pub(super) type ItemDetailsFor = ItemDetails<::AccountId, DepositBalanceOf>; +/// A type alias to represent the price of an item. pub(super) type ItemPrice = <>::Currency as Currency<::AccountId>>::Balance;