diff options
author | 2024-05-02 17:23:32 +0200 | |
---|---|---|
committer | 2024-05-02 17:23:32 +0200 | |
commit | aae8e4f5cfabfc3725ac938023fa29a6737a380c (patch) | |
tree | 2937c1a4d5ec51843f5722a0112e472bea06b194 | |
parent | ffa6614026cfc0dbdd636ad5a334008c1ee5532d (diff) | |
download | iced-aae8e4f5cfabfc3725ac938023fa29a6737a380c.tar.gz iced-aae8e4f5cfabfc3725ac938023fa29a6737a380c.tar.bz2 iced-aae8e4f5cfabfc3725ac938023fa29a6737a380c.zip |
Fix `clippy` lints for new `1.78` stable toolchain
-rw-r--r-- | wgpu/src/primitive.rs | 2 | ||||
-rw-r--r-- | widget/src/keyed/column.rs | 2 | ||||
-rw-r--r-- | winit/src/multi_window.rs | 2 |
3 files changed, 3 insertions, 3 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`]. diff --git a/widget/src/keyed/column.rs b/widget/src/keyed/column.rs index a34ce9e6..fdaadefa 100644 --- a/widget/src/keyed/column.rs +++ b/widget/src/keyed/column.rs @@ -224,7 +224,7 @@ where ); if state.keys != self.keys { - state.keys = self.keys.clone(); + state.keys.clone_from(&self.keys); } } diff --git a/winit/src/multi_window.rs b/winit/src/multi_window.rs index f832eb81..2c148031 100644 --- a/winit/src/multi_window.rs +++ b/winit/src/multi_window.rs @@ -1190,7 +1190,7 @@ fn run_command<A, C, E>( } /// Build the user interface for every window. -pub fn build_user_interfaces<'a, A: Application, C: Compositor>( +pub fn build_user_interfaces<'a, A: Application, C>( application: &'a A, debug: &mut Debug, window_manager: &mut WindowManager<A, C>, |