From badfb17d2fc9ff79a6064058c58dcea7526457f4 Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Thu, 23 Mar 2023 20:16:14 -0400 Subject: [PATCH] Add #[inline] to the Into for From impl --- library/core/src/convert/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs index 805354be089a5..8a8d4caf96f33 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 /// [From]<T> for U chooses to do. + #[inline] fn into(self) -> U { U::from(self) }