From a4f1331b9d351658dcdf676e1560a807992dcfa9 Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Mon, 13 Jun 2022 18:33:02 +0000 Subject: [perf] std: add missing `#[inline]` to `DefaultHasher::{new,default}`. --- library/std/src/collections/hash/map.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'library/std/src/collections') diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs index 11ccdd9ea1c..d38fecc45b2 100644 --- a/library/std/src/collections/hash/map.rs +++ b/library/std/src/collections/hash/map.rs @@ -3140,6 +3140,7 @@ impl DefaultHasher { /// `DefaultHasher` instances, but is the same as all other `DefaultHasher` /// instances created through `new` or `default`. #[stable(feature = "hashmap_default_hasher", since = "1.13.0")] + #[inline] #[allow(deprecated)] #[must_use] pub fn new() -> DefaultHasher { @@ -3153,6 +3154,7 @@ impl Default for DefaultHasher { /// See its documentation for more. /// /// [`new`]: DefaultHasher::new + #[inline] fn default() -> DefaultHasher { DefaultHasher::new() } -- cgit 1.4.1-3-g733a5