Skip to content

Commit c7cf08d

Browse files
authored
chore(iroh-relay): Fix cargo check warning (#3346)
## Description This should fix [the `minimal-crates` failure](https://github.com/n0-computer/iroh/actions/runs/15528521924/job/43712497899) that we run with the flaky test suite regularly. ![image](https://github.com/user-attachments/assets/a657d0b1-1332-439d-aa92-261a8026e6fb) ## Change checklist <!-- Remove any that are not relevant. --> - [X] Self-review.
1 parent d4de591 commit c7cf08d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

iroh-relay/src/client/tls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl MaybeTlsStreamBuilder {
131131
}
132132
}
133133

134-
fn tls_servername(&self) -> Option<rustls::pki_types::ServerName> {
134+
fn tls_servername(&self) -> Option<rustls::pki_types::ServerName<'_>> {
135135
let host_str = self.url.host_str()?;
136136
let servername = rustls::pki_types::ServerName::try_from(host_str).ok()?;
137137
Some(servername)

iroh/src/magicsock/node_map/best_addr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl BestAddr {
180180
self.0 = Some(inner);
181181
}
182182

183-
pub fn state(&self, now: Instant) -> State {
183+
pub fn state(&self, now: Instant) -> State<'_> {
184184
match &self.0 {
185185
None => State::Empty,
186186
Some(state) => match state.trust_until {

iroh/src/watcher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub trait Watcher: Clone {
152152
/// # Cancel Safety
153153
///
154154
/// The returned future is cancel-safe.
155-
fn updated(&mut self) -> NextFut<Self> {
155+
fn updated(&mut self) -> NextFut<'_, Self> {
156156
NextFut { watcher: self }
157157
}
158158

@@ -166,7 +166,7 @@ pub trait Watcher: Clone {
166166
/// # Cancel Safety
167167
///
168168
/// The returned future is cancel-safe.
169-
fn initialized<T>(&mut self) -> InitializedFut<T, Self>
169+
fn initialized<T>(&mut self) -> InitializedFut<'_, T, Self>
170170
where
171171
Self: Watcher<Value = Option<T>>,
172172
{

0 commit comments

Comments
 (0)