mirror of
https://github.com/actix/actix-web.git
synced 2024-12-17 13:46:36 +00:00
fix docs
This commit is contained in:
parent
01885f9954
commit
efa68ec453
1 changed files with 2 additions and 5 deletions
|
@ -10,8 +10,7 @@ use ahash::AHashMap;
|
||||||
/// All entries into this map must be owned types (or static references).
|
/// All entries into this map must be owned types (or static references).
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct Extensions {
|
pub struct Extensions {
|
||||||
/// Use FxHasher with a std HashMap with for faster
|
/// Use AHasher with a std HashMap with for faster lookups on the small `TypeId` keys.
|
||||||
/// lookups on the small `TypeId` (u64 equivalent) keys.
|
|
||||||
map: AHashMap<TypeId, Box<dyn Any>>,
|
map: AHashMap<TypeId, Box<dyn Any>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,7 +156,6 @@ pub trait CloneToAny {
|
||||||
|
|
||||||
impl<T: Clone + Any> CloneToAny for T {
|
impl<T: Clone + Any> CloneToAny for T {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[inline]
|
|
||||||
fn any_ref(&self) -> &dyn Any {
|
fn any_ref(&self) -> &dyn Any {
|
||||||
&*self
|
&*self
|
||||||
}
|
}
|
||||||
|
@ -205,8 +203,7 @@ impl UncheckedAnyExt for dyn CloneAny {}
|
||||||
/// cloneable already but you can use reference counted wrappers if not.
|
/// cloneable already but you can use reference counted wrappers if not.
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct CloneableExtensions {
|
pub struct CloneableExtensions {
|
||||||
/// Use FxHasher with a std HashMap with for faster
|
/// Use AHasher with a std HashMap with for faster lookups on the small `TypeId` keys.
|
||||||
/// lookups on the small `TypeId` (u64 equivalent) keys.
|
|
||||||
map: AHashMap<TypeId, Box<dyn CloneAny>>,
|
map: AHashMap<TypeId, Box<dyn CloneAny>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue