Skip to content

Commit fd25d67

Browse files
committed
refactor: cleanup linting
1 parent 8be20fe commit fd25d67

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/libp2p-relay-manager/src/handler.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ impl ConnectionHandler for Handler {
5151
false
5252
}
5353

54-
fn on_behaviour_event(&mut self, event: Self::FromBehaviour) {
55-
let _ = event;
54+
fn on_behaviour_event(&mut self, _event: Self::FromBehaviour) {
5655
}
5756

5857
#[allow(clippy::wildcard_in_or_patterns)]

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ impl Ipfs {
17881788
.send(IpfsEvent::SendRequests(protocol, peers, request, tx))
17891789
.await?;
17901790

1791-
rx.await?.map_err(anyhow::Error::from)
1791+
rx.await?
17921792
}
17931793
.instrument(self.span.clone())
17941794
.await
@@ -1818,7 +1818,7 @@ impl Ipfs {
18181818
.send(IpfsEvent::SendResponse(protocol, peer_id, id, response, tx))
18191819
.await?;
18201820

1821-
rx.await?.map_err(anyhow::Error::from)
1821+
rx.await?
18221822
}
18231823
.instrument(self.span.clone())
18241824
.await

0 commit comments

Comments
 (0)