mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-22 22:31:33 +00:00
*: Fix newly raised clippy warnings (#3106)
Fixed minor issues raised by clippy to improve correctness and readablitity.
This commit is contained in:
@ -149,7 +149,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||
// Locate all nodes providing the file.
|
||||
let providers = network_client.get_providers(name.clone()).await;
|
||||
if providers.is_empty() {
|
||||
return Err(format!("Could not find provider for file {}.", name).into());
|
||||
return Err(format!("Could not find provider for file {name}.").into());
|
||||
}
|
||||
|
||||
// Request the content of the file from each node.
|
||||
@ -506,8 +506,8 @@ mod network {
|
||||
}
|
||||
}
|
||||
SwarmEvent::IncomingConnectionError { .. } => {}
|
||||
SwarmEvent::Dialing(peer_id) => eprintln!("Dialing {}", peer_id),
|
||||
e => panic!("{:?}", e),
|
||||
SwarmEvent::Dialing(peer_id) => eprintln!("Dialing {peer_id}"),
|
||||
e => panic!("{e:?}"),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user