Skip to content

Commit 152ae30

Browse files
committed
Add #[inline] to the Into for From impl
1 parent 9832e13 commit 152ae30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)