mirror of
https://github.com/wezterm/wezterm.git
synced 2026-11-08 01:21:45 +08:00
fix: mismatched_lifetime_syntaxes lint
This commit is contained in:
parent
ee433989d8
commit
d2f3f05b38
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ impl Snapshot {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> ProcIter {
|
||||
pub fn iter(&self) -> ProcIter<'_> {
|
||||
ProcIter {
|
||||
snapshot: &self,
|
||||
first: true,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user