Skip to content

Commit 319f731

Browse files
committed
chore: fix clippy lints from 1.85
1 parent 9c52c3c commit 319f731

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/anemo/src/endpoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pin_project_lite::pin_project! {
153153
}
154154
}
155155

156-
impl<'a> Future for Accept<'a> {
156+
impl Future for Accept<'_> {
157157
type Output = Option<Connecting>;
158158

159159
fn poll(self: Pin<&mut Self>, ctx: &mut Context<'_>) -> Poll<Self::Output> {

crates/anemo/src/middleware/timeout/inbound.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ where
9999
let this = self.project();
100100

101101
if let Poll::Ready(result) = this.inner.poll(cx) {
102-
return Poll::Ready(result.map_err(Into::into));
102+
return Poll::Ready(result);
103103
}
104104

105105
if let Some(sleep) = this.sleep.as_pin_mut() {

crates/anemo/src/types/peer_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl serde::Serialize for PeerId {
6868

6969
struct ShortPeerId<'a>(&'a PeerId, u8);
7070

71-
impl<'a> std::fmt::Display for ShortPeerId<'a> {
71+
impl std::fmt::Display for ShortPeerId<'_> {
7272
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
7373
write!(f, "{:.len$}", self.0, len = self.1.into())
7474
}

0 commit comments

Comments
 (0)