mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add #[inline] to the Into for From impl
This commit is contained in:
parent
e216300876
commit
badfb17d2f
@ -722,6 +722,7 @@ where
|
||||
///
|
||||
/// 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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user