chore: fix clippy lints
This commit is contained in:
parent
fc6cf89ac0
commit
19e5bee3d1
9 changed files with 13 additions and 13 deletions
|
|
@ -399,7 +399,7 @@ declare_class!(
|
|||
unsafe { &*string }.to_string()
|
||||
};
|
||||
|
||||
let is_control = string.chars().next().map_or(false, |c| c.is_control());
|
||||
let is_control = string.chars().next().is_some_and(|c| c.is_control());
|
||||
|
||||
// Commit only if we have marked text.
|
||||
if unsafe { self.hasMarkedText() } && self.is_ime_enabled() && !is_control {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue