Inline NonZeroN::from(n)
This commit is contained in:
parent
717eb6ccea
commit
061715604a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user