diff --git a/actix-http/src/extensions.rs b/actix-http/src/extensions.rs index 1d7b84fcb..886121d02 100644 --- a/actix-http/src/extensions.rs +++ b/actix-http/src/extensions.rs @@ -10,8 +10,7 @@ use ahash::AHashMap; /// All entries into this map must be owned types (or static references). #[derive(Default)] pub struct Extensions { - /// Use FxHasher with a std HashMap with for faster - /// lookups on the small `TypeId` (u64 equivalent) keys. + /// Use AHasher with a std HashMap with for faster lookups on the small `TypeId` keys. map: AHashMap>, } @@ -157,7 +156,6 @@ pub trait CloneToAny { impl CloneToAny for T { #[cfg(test)] - #[inline] fn any_ref(&self) -> &dyn Any { &*self } @@ -205,8 +203,7 @@ impl UncheckedAnyExt for dyn CloneAny {} /// cloneable already but you can use reference counted wrappers if not. #[derive(Default)] pub struct CloneableExtensions { - /// Use FxHasher with a std HashMap with for faster - /// lookups on the small `TypeId` (u64 equivalent) keys. + /// Use AHasher with a std HashMap with for faster lookups on the small `TypeId` keys. map: AHashMap>, }