Rust 1.58 lints (#2906)

## Issue Addressed

Closes #2616

## Proposed Changes

* Fixes for new Rust 1.58.0 lints
* Enable the `fn_to_numeric_cast_any` (#2616)
This commit is contained in:
Michael Sproul
2022-01-13 22:39:58 +00:00
parent 2ce2ec9b62
commit e8887ffea0
4 changed files with 4 additions and 7 deletions

View File

@@ -233,8 +233,7 @@ mod test {
if request_json != expected_json {
panic!(
"json mismatch!\n\nobserved: {}\n\nexpected: {}\n\n",
request_json.to_string(),
expected_json.to_string()
request_json, expected_json,
)
}
self

View File

@@ -714,7 +714,7 @@ pub fn set_network_config(
None
}
}) {
addr.push_str(&format!(":{}", enr_udp_port.to_string()));
addr.push_str(&format!(":{}", enr_udp_port));
} else {
return Err(
"enr-udp-port must be set for node to be discoverable with dns address"