about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKornel <kornel@geekhood.net>2021-08-07 12:52:24 +0100
committerKornel <kornel@geekhood.net>2021-08-07 13:46:19 +0100
commit215712283f044b902ef36f792e7360bb7690a65b (patch)
tree8562fc3f4d9897b079d747d35a5d93862d803899
parent6b20506d17f4e5e5bf5bcad7e94add4d754b0ae3 (diff)
downloadrust-215712283f044b902ef36f792e7360bb7690a65b.tar.gz
rust-215712283f044b902ef36f792e7360bb7690a65b.zip
Inline from of TryReserveErrorKind
-rw-r--r--library/alloc/src/collections/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/collections/mod.rs b/library/alloc/src/collections/mod.rs
index 3ee857f3399..0d442011921 100644
--- a/library/alloc/src/collections/mod.rs
+++ b/library/alloc/src/collections/mod.rs
@@ -111,6 +111,7 @@ pub enum TryReserveErrorKind {
     issue = "48043"
 )]
 impl From<TryReserveErrorKind> for TryReserveError {
+    #[inline]
     fn from(kind: TryReserveErrorKind) -> Self {
         Self { kind }
     }