Skip to content

Commit 2e51122

Browse files
committed
Make integer-to-integer From impls #[inline(always)]
1 parent 344889e commit 2e51122

File tree

1 file changed

+1
-1
lines changed
  • library/core/src/convert

1 file changed

+1
-1
lines changed

Diff for: library/core/src/convert/num.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ macro_rules! impl_from {
4949
// Rustdocs on the impl block show a "[+] show undocumented items" toggle.
5050
// Rustdocs on functions do not.
5151
#[doc = $doc]
52-
#[inline]
52+
#[inline(always)]
5353
fn from(small: $Small) -> Self {
5454
small as Self
5555
}

0 commit comments

Comments
 (0)