Fix clippy lints for new 1.78 stable toolchain

This commit is contained in:
Héctor Ramón Jiménez 2024-05-02 17:23:32 +02:00
parent ffa6614026
commit aae8e4f5cf
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 3 additions and 3 deletions

View file

@ -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`].