fix: mismatched_lifetime_syntaxes lint

This commit is contained in:
xtqqczze 2026-09-05 17:11:20 +01:00 committed by Benoit de Chezelles
parent ee433989d8
commit d2f3f05b38
5 changed files with 5 additions and 5 deletions

View File

@ -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()
}
}

View File

@ -34,7 +34,7 @@ impl Snapshot {
}
}
pub fn iter(&self) -> ProcIter {
pub fn iter(&self) -> ProcIter<'_> {
ProcIter {
snapshot: &self,
first: true,

View File

@ -758,7 +758,7 @@ impl Terminal for WindowsTerminal {
})
}
fn probe_capabilities(&mut self) -> Option<ProbeCapabilities> {
fn probe_capabilities(&mut self) -> Option<ProbeCapabilities<'_>> {
Some(ProbeCapabilities::new(
&mut self.input_handle,
&mut self.output_handle,

View File

@ -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()
}
}

View File

@ -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()
}
}