Make integer-to-integer From impls #[inline(always)]

This commit is contained in:
Eduardo Sánchez Muñoz 2022-12-04 22:55:18 +01:00
parent 344889e963
commit 2e51122647

View File

@ -49,7 +49,7 @@ macro_rules! impl_from {
// Rustdocs on the impl block show a "[+] show undocumented items" toggle.
// Rustdocs on functions do not.
#[doc = $doc]
#[inline]
#[inline(always)]
fn from(small: $Small) -> Self {
small as Self
}