chore: address latest clippy lints

I ran clippy on the current nightly and fixed issues found by it. Noteworthy are two instances of the [never_loop](https://rust-lang.github.io/rust-clippy/master/index.html#/never_loop) lint.

Pull-Request: #4571.
This commit is contained in:
Hannes
2023-09-28 12:08:51 +02:00
committed by GitHub
parent d30eb9daa7
commit 665181efb5
4 changed files with 15 additions and 22 deletions

View File

@@ -330,7 +330,7 @@ impl From<Rpc> for proto::RPC {
.into_iter()
.map(|info| proto::PeerInfo {
peer_id: info.peer_id.map(|id| id.to_bytes()),
/// TODO, see https://github.com/libp2p/specs/pull/217
// TODO, see https://github.com/libp2p/specs/pull/217
signed_peer_record: None,
})
.collect(),