Skip to content

Commit

Permalink
Add type info change in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
re-gius committed Nov 25, 2024
1 parent b4c048c commit 06212c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions substrate/primitives/runtime/src/type_with_default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, D: Get<T>>(T, PhantomData<D>);
Expand Down

0 comments on commit 06212c9

Please sign in to comment.