Fix clippy issues on stable

This commit is contained in:
Kirill Chibisov 2023-01-27 07:18:58 +03:00 committed by GitHub
parent e1b7fda409
commit 930df0ec45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 68 additions and 76 deletions

View file

@ -168,7 +168,7 @@ pub unsafe extern "C" fn xim_instantiate_callback(
Err(err) => {
if (*inner).is_destroyed {
// We have no usable input methods!
panic!("Failed to reopen input method: {:?}", err);
panic!("Failed to reopen input method: {err:?}");
}
}
}
@ -195,7 +195,7 @@ pub unsafe extern "C" fn xim_destroy_callback(
Ok(()) => (*inner).is_fallback = true,
Err(err) => {
// We have no usable input methods!
panic!("Failed to open fallback input method: {:?}", err);
panic!("Failed to open fallback input method: {err:?}");
}
}
}

View file

@ -171,7 +171,7 @@ impl Ime {
if self.is_destroyed() {
return None;
}
if let Some(&Some(ref context)) = self.inner.contexts.get(&window) {
if let Some(Some(context)) = self.inner.contexts.get(&window) {
Some(context.ic)
} else {
None