mirror of https://github.com/fafhrd91/actix-web
replace get.is_some to contains_key
This commit is contained in:
parent
3a5b62b550
commit
847e815f43
|
@ -28,7 +28,7 @@ impl Extensions {
|
|||
|
||||
/// Check if container contains entry
|
||||
pub fn contains<T: 'static>(&self) -> bool {
|
||||
self.map.get(&TypeId::of::<T>()).is_some()
|
||||
self.map.contains_key(&TypeId::of::<T>())
|
||||
}
|
||||
|
||||
/// Get a reference to a type previously inserted on this `Extensions`.
|
||||
|
|
Loading…
Reference in New Issue