]> git.lizzy.rs Git - rust.git/commitdiff
Inline from of TryReserveErrorKind
authorKornel <kornel@geekhood.net>
Sat, 7 Aug 2021 11:52:24 +0000 (12:52 +0100)
committerKornel <kornel@geekhood.net>
Sat, 7 Aug 2021 12:46:19 +0000 (13:46 +0100)
library/alloc/src/collections/mod.rs

index 3ee857f3399e09f931e342a03528244ae48d6941..0d442011921ba7bb5516058d21f6facbb76a31a6 100644 (file)
@@ -111,6 +111,7 @@ pub enum TryReserveErrorKind {
     issue = "48043"
 )]
 impl From<TryReserveErrorKind> for TryReserveError {
+    #[inline]
     fn from(kind: TryReserveErrorKind) -> Self {
         Self { kind }
     }