address clippy lints

This commit is contained in:
Ferdinand Schober
2025-01-20 17:43:53 +01:00
committed by Ferdinand Schober
parent a8504df879
commit a962e43724
4 changed files with 11 additions and 11 deletions

View File

@@ -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,