Skip to content

Commit

Permalink
Fix clippy lints for new 1.78 stable toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed May 2, 2024
1 parent ffa6614 commit aae8e4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wgpu/src/primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`].
Expand Down
2 changes: 1 addition & 1 deletion widget/src/keyed/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ where
);

if state.keys != self.keys {
state.keys = self.keys.clone();
state.keys.clone_from(&self.keys);
}
}

Expand Down
2 changes: 1 addition & 1 deletion winit/src/multi_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit aae8e4f

Please sign in to comment.