replace get.is_some to contains_key

This commit is contained in:
Øsystems 2020-01-21 14:31:20 +10:00
parent 3a5b62b550
commit 847e815f43
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ impl Extensions {
/// Check if container contains entry /// Check if container contains entry
pub fn contains<T: 'static>(&self) -> bool { 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`. /// Get a reference to a type previously inserted on this `Extensions`.