mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
address clippy lints
This commit is contained in:
committed by
Ferdinand Schober
parent
a8504df879
commit
a962e43724
@@ -74,7 +74,7 @@ async fn get_ei_fd<'a>(
|
||||
Ok((remote_desktop, session, fd))
|
||||
}
|
||||
|
||||
impl<'a> LibeiEmulation<'a> {
|
||||
impl LibeiEmulation<'_> {
|
||||
pub(crate) async fn new() -> Result<Self, LibeiEmulationCreationError> {
|
||||
let (_remote_desktop, session, eifd) = get_ei_fd().await?;
|
||||
let stream = UnixStream::from(eifd);
|
||||
@@ -109,14 +109,14 @@ impl<'a> LibeiEmulation<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Drop for LibeiEmulation<'a> {
|
||||
impl Drop for LibeiEmulation<'_> {
|
||||
fn drop(&mut self) {
|
||||
self.ei_task.abort();
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl<'a> Emulation for LibeiEmulation<'a> {
|
||||
impl Emulation for LibeiEmulation<'_> {
|
||||
async fn consume(
|
||||
&mut self,
|
||||
event: Event,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user