Skip to content

Commit

Permalink
introduce from_nonzero feature
Browse files Browse the repository at this point in the history
  • Loading branch information
csmoe committed Sep 17, 2018
1 parent f451580 commit ac61a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/num/mod.rs
Expand Up @@ -93,7 +93,7 @@ assert_eq!(size_of::<Option<std::num::", stringify!($Ty), ">>(), size_of::<", st

}

#[stable(feature = "nonzero", since = "1.28.0")]
#[stable(feature = "from_nonzero", since = "1.31.0")]
impl From<$Ty> for $Int {
fn from(nonzero: $Ty) -> Self {
nonzero.0 .0
Expand Down

0 comments on commit ac61a9c

Please sign in to comment.