mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
Add #[inline] to the Into for From impl
This commit is contained in:
@@ -722,6 +722,7 @@ impl<T, U> const Into<U> for T
|
||||
///
|
||||
/// That is, this conversion is whatever the implementation of
|
||||
/// <code>[From]<T> for U</code> chooses to do.
|
||||
#[inline]
|
||||
fn into(self) -> U {
|
||||
U::from(self)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user