From 9531a1ac16753bcd9c7829e5b9e0582198c9bf01 Mon Sep 17 00:00:00 2001 From: Guillaume Thiolliere Date: Sat, 17 Apr 2021 17:01:31 +0200 Subject: [PATCH] fix doc and dyn (#8631) --- frame/support/src/lib.rs | 4 ++-- frame/support/src/storage/bounded_vec.rs | 6 +++--- primitives/externalities/src/lib.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frame/support/src/lib.rs b/frame/support/src/lib.rs index 6740e0db5a0ef..5aa688ba28c37 100644 --- a/frame/support/src/lib.rs +++ b/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/frame/support/src/storage/bounded_vec.rs b/frame/support/src/storage/bounded_vec.rs index 44e3f30a7b31c..9fcfe4035294f 100644 --- a/frame/support/src/storage/bounded_vec.rs +++ b/frame/support/src/storage/bounded_vec.rs @@ -214,7 +214,7 @@ impl> codec::DecodeLength for BoundedVec { impl> StorageDecodeLength for BoundedVec {} -/// Storage value that is *maybe* capable of [`StorageAppend`]. +/// Storage value that is *maybe* capable of [`StorageAppend`](crate::storage::StorageAppend). pub trait TryAppendValue> { /// Try and append the `item` into the storage item. /// @@ -222,7 +222,7 @@ pub trait TryAppendValue> { fn try_append>(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> { /// Try and append the `item` into the storage map at the given `key`. /// @@ -233,7 +233,7 @@ pub trait TryAppendMap> { ) -> 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> { /// Try and append the `item` into the storage double map at the given `key`. /// diff --git a/primitives/externalities/src/lib.rs b/primitives/externalities/src/lib.rs index c90881b76e26c..ce5a0990d738d 100644 --- a/primitives/externalities/src/lib.rs +++ b/primitives/externalities/src/lib.rs @@ -312,7 +312,7 @@ pub trait ExternalitiesExt { impl ExternalitiesExt for &mut dyn Externalities { fn extension(&mut self) -> Option<&mut T> { - self.extension_by_type_id(TypeId::of::()).and_then(Any::downcast_mut) + self.extension_by_type_id(TypeId::of::()).and_then(::downcast_mut) } fn register_extension(&mut self, ext: T) -> Result<(), Error> {