Chore: Clippy fixes for new lints

This commit is contained in:
Kyle Simpson
2021-06-14 23:27:57 +01:00
parent d6d6acabe1
commit be3030932e
5 changed files with 6 additions and 6 deletions

View File

@@ -144,7 +144,7 @@ impl Connection {
let address_str = std::str::from_utf8(&view.get_address_raw()[..nul_byte_index])
.map_err(|_| Error::IllegalIp)?;
let address = IpAddr::from_str(&address_str).map_err(|e| {
let address = IpAddr::from_str(address_str).map_err(|e| {
println!("{:?}", e);
Error::IllegalIp
})?;