aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.rs
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2023-01-02 11:13:48 +0100
committerNicholas Rodrigues Lordello <[email protected]>2023-01-02 11:13:48 +0100
commitd8496d150db33f4bab4d4c9e0162d65b071aef74 (patch)
tree60573c228b2f13b0791eb7df1334b05c8bb8f99d /src/cmd.rs
parent9c163483a23063d0b6dc52057314af922bc98aae (diff)
Linting
Diffstat (limited to 'src/cmd.rs')
-rw-r--r--src/cmd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd.rs b/src/cmd.rs
index e2e772c..def1ec2 100644
--- a/src/cmd.rs
+++ b/src/cmd.rs
@@ -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)