Skip to content

Commit badfb17

Browse files
committed
Add #[inline] to the Into for From impl
1 parent e216300 commit badfb17

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

library/core/src/convert/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ where
722722
///
723723
/// That is, this conversion is whatever the implementation of
724724
/// <code>[From]&lt;T&gt; for U</code> chooses to do.
725+
#[inline]
725726
fn into(self) -> U {
726727
U::from(self)
727728
}

0 commit comments

Comments
 (0)