mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 01:01:34 +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:
@ -185,7 +185,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
SwarmEvent::NewListenAddr { address, .. } => {
|
||||
info!("Listening on {:?}", address);
|
||||
}
|
||||
event => panic!("{:?}", event),
|
||||
event => panic!("{event:?}"),
|
||||
}
|
||||
}
|
||||
_ = delay => {
|
||||
@ -220,7 +220,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
info!("Relay told us our public address: {:?}", observed_addr);
|
||||
learned_observed_addr = true;
|
||||
}
|
||||
event => panic!("{:?}", event),
|
||||
event => panic!("{event:?}"),
|
||||
}
|
||||
|
||||
if learned_observed_addr && told_relay_observed_addr {
|
||||
|
Reference in New Issue
Block a user