Inline NonZeroN::from(n)

This commit is contained in:
Peter Todd 2020-10-28 13:26:44 -04:00
parent 717eb6ccea
commit 061715604a
No known key found for this signature in database
GPG Key ID: 2481403DA5F091FB

View File

@ -92,6 +92,7 @@ impl From<$Ty> for $Int {
doc_comment! {
concat!(
"Converts a `", stringify!($Ty), "` into an `", stringify!($Int), "`"),
#[inline]
fn from(nonzero: $Ty) -> Self {
nonzero.0
}