mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-29 09:41:34 +00:00
Make clippy "happy". (#1950)
* Make clippy "happy". Address all clippy complaints that are not purely stylistic (or even have corner cases with false positives). Ignore all "style" and "pedantic" lints. * Fix tests. * Undo unnecessary API change.
This commit is contained in:
@ -110,7 +110,7 @@ impl MessageCache {
|
||||
let count = iwant_counts
|
||||
.entry(message_id.clone())
|
||||
.or_default()
|
||||
.entry(peer.clone())
|
||||
.entry(*peer)
|
||||
.or_default();
|
||||
*count += 1;
|
||||
*count
|
||||
|
Reference in New Issue
Block a user