From d2f3f05b38f26a872f4b0bfbb3d2eaa7bdfc1b0b Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sat, 5 Sep 2026 17:11:20 +0100 Subject: [PATCH] fix: mismatched_lifetime_syntaxes lint --- async_ossl/src/lib.rs | 2 +- procinfo/src/windows.rs | 2 +- termwiz/src/terminal/windows.rs | 2 +- wezterm-client/src/client.rs | 2 +- wezterm-uds/src/lib.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/async_ossl/src/lib.rs b/async_ossl/src/lib.rs index a4f317931..af3d3c56a 100644 --- a/async_ossl/src/lib.rs +++ b/async_ossl/src/lib.rs @@ -42,7 +42,7 @@ impl std::os::windows::io::AsRawSocket for AsyncSslStream { #[cfg(windows)] impl std::os::windows::io::AsSocket for AsyncSslStream { - fn as_socket(&self) -> std::os::windows::io::BorrowedSocket { + fn as_socket(&self) -> std::os::windows::io::BorrowedSocket<'_> { self.s.get_ref().as_socket() } } diff --git a/procinfo/src/windows.rs b/procinfo/src/windows.rs index 9f6c24a89..2ca376814 100644 --- a/procinfo/src/windows.rs +++ b/procinfo/src/windows.rs @@ -34,7 +34,7 @@ impl Snapshot { } } - pub fn iter(&self) -> ProcIter { + pub fn iter(&self) -> ProcIter<'_> { ProcIter { snapshot: &self, first: true, diff --git a/termwiz/src/terminal/windows.rs b/termwiz/src/terminal/windows.rs index 558fbbc71..5dde8c7b9 100644 --- a/termwiz/src/terminal/windows.rs +++ b/termwiz/src/terminal/windows.rs @@ -758,7 +758,7 @@ impl Terminal for WindowsTerminal { }) } - fn probe_capabilities(&mut self) -> Option { + fn probe_capabilities(&mut self) -> Option> { Some(ProbeCapabilities::new( &mut self.input_handle, &mut self.output_handle, diff --git a/wezterm-client/src/client.rs b/wezterm-client/src/client.rs index 9dc242062..df3351365 100644 --- a/wezterm-client/src/client.rs +++ b/wezterm-client/src/client.rs @@ -578,7 +578,7 @@ impl AsRawSocket for SshStream { #[cfg(windows)] impl AsSocket for SshStream { - fn as_socket(&self) -> BorrowedSocket { + fn as_socket(&self) -> BorrowedSocket<'_> { self.stdout.as_socket() } } diff --git a/wezterm-uds/src/lib.rs b/wezterm-uds/src/lib.rs index 76abe5f82..03130de04 100644 --- a/wezterm-uds/src/lib.rs +++ b/wezterm-uds/src/lib.rs @@ -69,7 +69,7 @@ impl AsRawSocket for UnixStream { } #[cfg(windows)] impl AsSocket for UnixStream { - fn as_socket(&self) -> BorrowedSocket { + fn as_socket(&self) -> BorrowedSocket<'_> { self.0.as_socket() } }