Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreae committed Jun 3, 2024
1 parent 1e3377c commit 4ced3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aquadoggo/src/network/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn to_multiaddress(address: &String) -> Result<Multiaddr> {
let socket_address = address
.to_socket_addrs()?
.next()
.expect(&format!("Could not resolve socket address for: {address}"));
.unwrap_or_else(|| panic!("Could not resolve socket address for: {}", address));

Check warning on line 32 in aquadoggo/src/network/utils.rs

View check run for this annotation

Codecov / codecov/patch

aquadoggo/src/network/utils.rs#L28-L32

Added lines #L28 - L32 were not covered by tests

let mut multiaddr = match socket_address.ip() {
IpAddr::V4(ip) => Multiaddr::from(Protocol::Ip4(ip)),
Expand Down

0 comments on commit 4ced3a8

Please sign in to comment.