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`].
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ where
|
|||
);
|
||||
|
||||
if state.keys != self.keys {
|
||||
state.keys = self.keys.clone();
|
||||
state.keys.clone_from(&self.keys);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue