Add #[inline] to the Into for From impl

This commit is contained in:
Ben Kimock
2023-03-23 20:16:14 -04:00
parent e216300876
commit badfb17d2f
+1
View File
@@ -722,6 +722,7 @@ impl<T, U> const Into<U> for T
///
/// That is, this conversion is whatever the implementation of
/// <code>[From]&lt;T&gt; for U</code> chooses to do.
#[inline]
fn into(self) -> U {
U::from(self)
}