mirror of
https://github.com/rust-lang/rust
synced 2024-10-17 14:03:42 +00:00
Make integer-to-integer From
impls #[inline(always)]
This commit is contained in:
parent
344889e963
commit
2e51122647
|
@ -49,7 +49,7 @@ impl const From<$Small> for $Large {
|
|||
// 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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue