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).
|
||||
#[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<TypeId, Box<dyn Any>>,
|
||||
}
|
||||
|
||||
|
@ -157,7 +156,6 @@ pub trait CloneToAny {
|
|||
|
||||
impl<T: Clone + Any> 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<TypeId, Box<dyn CloneAny>>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue