Fix clippy lints for new 1.78 stable toolchain
This commit is contained in:
parent
ffa6614026
commit
aae8e4f5cf
3 changed files with 3 additions and 3 deletions
|
|
@ -67,7 +67,7 @@ pub struct Storage {
|
|||
impl Storage {
|
||||
/// Returns `true` if `Storage` contains a type `T`.
|
||||
pub fn has<T: 'static>(&self) -> bool {
|
||||
self.pipelines.get(&TypeId::of::<T>()).is_some()
|
||||
self.pipelines.contains_key(&TypeId::of::<T>())
|
||||
}
|
||||
|
||||
/// Inserts the data `T` in to [`Storage`].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue