Skip to content

Commit

Permalink
address clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Jan 20, 2025
1 parent a8504df commit 0bb5e8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion input-emulation/src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fn get_display_at_point(x: CGFloat, y: CGFloat) -> Option<CGDirectDisplayID> {
return Option::None;
}

return displays.first().copied();
displays.first().copied()
}

fn get_display_bounds(display: CGDirectDisplayID) -> (CGFloat, CGFloat, CGFloat, CGFloat) {
Expand Down
4 changes: 2 additions & 2 deletions input-emulation/src/xdg_desktop_portal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl<'a> DesktopPortalEmulation<'a> {
}

#[async_trait]
impl<'a> Emulation for DesktopPortalEmulation<'a> {
impl Emulation for DesktopPortalEmulation<'_> {
async fn consume(
&mut self,
event: input_event::Event,
Expand Down Expand Up @@ -141,7 +141,7 @@ impl<'a> Emulation for DesktopPortalEmulation<'a> {
}
}

impl<'a> AsyncDrop for DesktopPortalEmulation<'a> {
impl AsyncDrop for DesktopPortalEmulation<'_> {
#[doc = r" Perform the async cleanup."]
#[must_use]
#[allow(clippy::type_complexity, clippy::type_repetition_in_bounds)]
Expand Down

0 comments on commit 0bb5e8c

Please sign in to comment.