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> { .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 for PositiveI64 { } fn parse_byte_count(n: &str, block_size: PositiveI64) -> Option { - const HEX_PREFIX: &'static str = "0x"; + const HEX_PREFIX: &str = "0x"; let n = { let mut chars = n.chars();