Skip to content

Commit

Permalink
Inline NonZeroN::from(n)
Browse files Browse the repository at this point in the history
  • Loading branch information
petertodd committed Oct 28, 2020
1 parent 717eb6c commit 0617156
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/num/nonzero.rs
Expand Up @@ -92,6 +92,7 @@ assert_eq!(size_of::<Option<core::num::", stringify!($Ty), ">>(), size_of::<", s
doc_comment! {
concat!(
"Converts a `", stringify!($Ty), "` into an `", stringify!($Int), "`"),
#[inline]
fn from(nonzero: $Ty) -> Self {
nonzero.0
}
Expand Down

0 comments on commit 0617156

Please sign in to comment.