Updated to comply with new clippy formatting rules (#2336)

## Issue Addressed

The latest version of Rust has new clippy rules & the codebase isn't up to date with them.

## Proposed Changes

Small formatting changes that clippy tells me are functionally equivalent
This commit is contained in:
ethDreamer
2021-05-10 00:53:09 +00:00
parent bacc38c3da
commit cb47388ad7
14 changed files with 26 additions and 30 deletions

View File

@@ -73,7 +73,7 @@ impl FromStr for Eth1Id {
type Err = String;
fn from_str(s: &str) -> Result<Self, Self::Err> {
u64::from_str_radix(s, 10)
s.parse::<u64>()
.map(Into::into)
.map_err(|e| format!("Failed to parse eth1 network id {}", e))
}