diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2023-01-02 11:13:48 +0100 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2023-01-02 11:13:48 +0100 |
| commit | d8496d150db33f4bab4d4c9e0162d65b071aef74 (patch) | |
| tree | 60573c228b2f13b0791eb7df1334b05c8bb8f99d /src/cmd.rs | |
| parent | 9c163483a23063d0b6dc52057314af922bc98aae (diff) | |
Linting
Diffstat (limited to 'src/cmd.rs')
| -rw-r--r-- | src/cmd.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -56,7 +56,7 @@ impl AccountOptions { fn permissive_hex(s: &str) -> Result<Box<[u8]>> { let trimmed = s.chars().filter(|c| !c.is_whitespace()).collect::<String>(); let hex_string = trimmed.strip_prefix("0x").unwrap_or(&trimmed); - let bytes = ::hex::decode(&hex_string)?; + let bytes = ::hex::decode(hex_string)?; // NOTE: Use a boxed slice instead of a `Vec` as the former has special // scemantics with `clap`. Ok(bytes.into_boxed_slice()) @@ -70,7 +70,7 @@ fn read_input(input: &Path) -> Result<Vec<u8>> { io::stdin().read_to_end(&mut buf)?; buf } - _ => fs::read(&input)?, + _ => fs::read(input)?, }; Ok(data) |
