Fix clippy suggestions

This commit is contained in:
sharkdp authored and David Peter committed 2020-06-07 15:12:35 +02:00
1 parent 478cc25ffd
commit 751b670d5b
1 file changed
+2 -2
+2 -2
View File
@@ -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();