summaryrefslogtreecommitdiffstats
path: root/wgpu/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-02 17:23:32 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-02 17:23:32 +0200
commitaae8e4f5cfabfc3725ac938023fa29a6737a380c (patch)
tree2937c1a4d5ec51843f5722a0112e472bea06b194 /wgpu/src
parentffa6614026cfc0dbdd636ad5a334008c1ee5532d (diff)
downloadiced-aae8e4f5cfabfc3725ac938023fa29a6737a380c.tar.gz
iced-aae8e4f5cfabfc3725ac938023fa29a6737a380c.tar.bz2
iced-aae8e4f5cfabfc3725ac938023fa29a6737a380c.zip
Fix `clippy` lints for new `1.78` stable toolchain
Diffstat (limited to 'wgpu/src')
-rw-r--r--wgpu/src/primitive.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs
index 1313e752..8641f27a 100644
--- a/wgpu/src/primitive.rs
+++ b/wgpu/src/primitive.rs
@@ -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`].