From 08259b7150f0dba48a39e51a83073680bf77c29e Mon Sep 17 00:00:00 2001 From: Sacha Lansky Date: Mon, 17 Jul 2023 17:18:33 +0200 Subject: [PATCH 1/2] Fix clippy::missing_docs_in_private_items --- frame/uniques/src/types.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frame/uniques/src/types.rs b/frame/uniques/src/types.rs index 5b13998153e03..a2e804f245f77 100644 --- a/frame/uniques/src/types.rs +++ b/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; From 176f6848f2002e026d2bcea69dceb241b24ccd80 Mon Sep 17 00:00:00 2001 From: Sacha Lansky Date: Mon, 17 Jul 2023 17:23:56 +0200 Subject: [PATCH 2/2] Fix clippy::missing_docs_in_private_items --- frame/uniques/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frame/uniques/src/lib.rs b/frame/uniques/src/lib.rs index 95ef8111f1e46..1b75d0b078ba5 100644 --- a/frame/uniques/src/lib.rs +++ b/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]