From 06212c92c2fa528a6fc5574b4135e977c0fb2d14 Mon Sep 17 00:00:00 2001 From: giuseppere Date: Mon, 25 Nov 2024 18:10:25 +0100 Subject: [PATCH] Add type info change in docs --- substrate/primitives/runtime/src/type_with_default.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/substrate/primitives/runtime/src/type_with_default.rs b/substrate/primitives/runtime/src/type_with_default.rs index b05c8f03216d..b0eca22e5c1a 100644 --- a/substrate/primitives/runtime/src/type_with_default.rs +++ b/substrate/primitives/runtime/src/type_with_default.rs @@ -40,6 +40,7 @@ use serde::{Deserialize, Serialize}; /// A type that wraps another type and provides a default value. /// /// Passes through arithmetical and many other operations to the inner value. +/// Type information for metadata is the same as the inner value's type. #[derive(Encode, Decode, Debug, MaxEncodedLen)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct TypeWithDefault>(T, PhantomData);