diff options
author | sharkdp <davidpeter@web.de> | 2020-06-07 11:34:12 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-06-07 15:12:35 +0200 |
commit | 751b670d5b97448cb78671a4c0315f03a94274eb (patch) | |
tree | 08408e01a7b4f79a4957463510f68cf059e844d2 | |
parent | 478cc25ffdc5a00f08953010f74da127d51c2fea (diff) |
Fix clippy suggestions
-rw-r--r-- | src/bin/hexyl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/hexyl.rs b/src/bin/hexyl.rs index 9590e89..c9ec0c8 100644 --- a/src/bin/hexyl.rs +++ b/src/bin/hexyl.rs @@ -111,7 +111,7 @@ fn run() -> Result<(), Box<dyn std::error::Error>> { .value_of("skip") .and_then(|s| parse_byte_count(s, block_size)); - if let Some(skip) = skip_arg.clone() { + if let Some(skip) = skip_arg { reader.seek(SeekFrom::Current(skip.into_inner()))?; } @@ -207,7 +207,7 @@ impl Into<u64> for PositiveI64 { } fn parse_byte_count(n: &str, block_size: PositiveI64) -> Option<PositiveI64> { - const HEX_PREFIX: &'static str = "0x"; + const HEX_PREFIX: &str = "0x"; let n = { let mut chars = n.chars(); |