diff --git a/substrate/frame/support/src/lib.rs b/substrate/frame/support/src/lib.rs index 6740e0db5a0ef3ccd9b2eef6c7e1aaa4e16cde05..5aa688ba28c379510d494da4612b4393ae942b67 100644 --- a/substrate/frame/support/src/lib.rs +++ b/substrate/frame/support/src/lib.rs @@ -99,8 +99,8 @@ impl TypeId for PalletId { const TYPE_ID: [u8; 4] = *b"modl"; } -/// Generate a new type alias for [`storage::types::value::StorageValue`], -/// [`storage::types::value::StorageMap`] and [`storage::types::value::StorageDoubleMap`]. +/// Generate a new type alias for [`storage::types::StorageValue`], +/// [`storage::types::StorageMap`] and [`storage::types::StorageDoubleMap`]. /// /// Useful for creating a *storage-like* struct for test and migrations. /// diff --git a/substrate/frame/support/src/storage/bounded_vec.rs b/substrate/frame/support/src/storage/bounded_vec.rs index 44e3f30a7b31c4413f2d664ae701ae6bd3a5993d..9fcfe4035294f79f802250d4e9cbe106e3907fd9 100644 --- a/substrate/frame/support/src/storage/bounded_vec.rs +++ b/substrate/frame/support/src/storage/bounded_vec.rs @@ -214,7 +214,7 @@ impl<T: BoundedVecValue, S: Get<u32>> codec::DecodeLength for BoundedVec<T, S> { impl<T: BoundedVecValue, S: Get<u32>> StorageDecodeLength for BoundedVec<T, S> {} -/// Storage value that is *maybe* capable of [`StorageAppend`]. +/// Storage value that is *maybe* capable of [`StorageAppend`](crate::storage::StorageAppend). pub trait TryAppendValue<T: BoundedVecValue, S: Get<u32>> { /// Try and append the `item` into the storage item. /// @@ -222,7 +222,7 @@ pub trait TryAppendValue<T: BoundedVecValue, S: Get<u32>> { fn try_append<LikeT: EncodeLike<T>>(item: LikeT) -> Result<(), ()>; } -/// Storage map that is *maybe* capable of [`StorageAppend`]. +/// Storage map that is *maybe* capable of [`StorageAppend`](crate::storage::StorageAppend). pub trait TryAppendMap<K: FullCodec, T: BoundedVecValue, S: Get<u32>> { /// Try and append the `item` into the storage map at the given `key`. /// @@ -233,7 +233,7 @@ pub trait TryAppendMap<K: FullCodec, T: BoundedVecValue, S: Get<u32>> { ) -> Result<(), ()>; } -/// Storage double map that is *maybe* capable of [`StorageAppend`]. +/// Storage double map that is *maybe* capable of [`StorageAppend`](crate::storage::StorageAppend). pub trait TryAppendDoubleMap<K1: FullCodec, K2: FullCodec, T: BoundedVecValue, S: Get<u32>> { /// Try and append the `item` into the storage double map at the given `key`. /// diff --git a/substrate/primitives/externalities/src/lib.rs b/substrate/primitives/externalities/src/lib.rs index c90881b76e26c02652a99470eb596cbf5d020563..ce5a0990d738dbd05d064ac5ca92087a99931daf 100644 --- a/substrate/primitives/externalities/src/lib.rs +++ b/substrate/primitives/externalities/src/lib.rs @@ -312,7 +312,7 @@ pub trait ExternalitiesExt { impl ExternalitiesExt for &mut dyn Externalities { fn extension<T: Any + Extension>(&mut self) -> Option<&mut T> { - self.extension_by_type_id(TypeId::of::<T>()).and_then(Any::downcast_mut) + self.extension_by_type_id(TypeId::of::<T>()).and_then(<dyn Any>::downcast_mut) } fn register_extension<T: Extension>(&mut self, ext: T) -> Result<(), Error> {