Skip to content

Commit

Permalink
Fix nightly Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Dec 2, 2024
1 parent a2e2703 commit 3d9f997
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/platform_impl/apple/appkit/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/linux/x11/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ impl XConnection {
let info = self
.xcb_connection()
.extension_information(randr::X11_EXTENSION_NAME)?
.ok_or_else(|| X11Error::MissingExtension(randr::X11_EXTENSION_NAME))?;
.ok_or(X11Error::MissingExtension(randr::X11_EXTENSION_NAME))?;

// Select input data.
let event_mask =
Expand Down

0 comments on commit 3d9f997

Please sign in to comment.