mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 01:51:23 +00:00
chore: Implement latest clippy warnings (#3220)
As I do frequently, I corrected for the latest clippy warnings. This will make sure the CI won't complain in the future. We could automate this btw and maybe run the nightly version of clippy.
This commit is contained in:
@ -159,7 +159,7 @@ impl fmt::Display for Failure {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
Failure::Timeout => f.write_str("Ping timeout"),
|
||||
Failure::Other { error } => write!(f, "Ping error: {}", error),
|
||||
Failure::Other { error } => write!(f, "Ping error: {error}"),
|
||||
Failure::Unsupported => write!(f, "Ping protocol not supported"),
|
||||
}
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ fn ping_pong() {
|
||||
result: Err(e),
|
||||
..
|
||||
})) => {
|
||||
panic!("Ping failure: {:?}", e)
|
||||
panic!("Ping failure: {e:?}")
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
@ -101,7 +101,7 @@ fn ping_pong() {
|
||||
result: Err(e),
|
||||
..
|
||||
})) => {
|
||||
panic!("Ping failure: {:?}", e)
|
||||
panic!("Ping failure: {e:?}")
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user