diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-03-23 20:16:14 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2023-03-24 15:06:31 -0400 |
| commit | badfb17d2fc9ff79a6064058c58dcea7526457f4 (patch) | |
| tree | 4be22bebcda0cb4d9ab1bafa1188e79ab8d7a2a1 | |
| parent | e2163008763c326ec4003e07b8e6eef0c98f6204 (diff) | |
| download | rust-badfb17d2fc9ff79a6064058c58dcea7526457f4.tar.gz rust-badfb17d2fc9ff79a6064058c58dcea7526457f4.zip | |
Add #[inline] to the Into for From impl
| -rw-r--r-- | library/core/src/convert/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs index 805354be089..8a8d4caf96f 100644 --- a/library/core/src/convert/mod.rs +++ b/library/core/src/convert/mod.rs @@ -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) } |
