Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: linning <[email protected]>
  • Loading branch information
NingLin-P committed Nov 11, 2024
1 parent 1339613 commit 5b94229
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions substrate/primitives/runtime/src/type_with_default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ impl<T: Display, D: Get<T>> Display for TypeWithDefault<T, D> {
}

macro_rules! impl_from {
($for_type:ty $(, $try_from_type:ty)*) => {
($for_type:ty $(, $from_type:ty)*) => {
$(
impl<D: Get<$for_type>> From<$try_from_type> for TypeWithDefault<$for_type, D> {
fn from(value: $try_from_type) -> Self {
impl<D: Get<$for_type>> From<$from_type> for TypeWithDefault<$for_type, D> {
fn from(value: $from_type) -> Self {
Self::new(value.into())
}
}
Expand Down

0 comments on commit 5b94229

Please sign in to comment.