diff --git a/src/bin/hexyl.rs b/src/bin/hexyl.rs index 039d0a8..53888a8 100644 --- a/src/bin/hexyl.rs +++ b/src/bin/hexyl.rs @@ -142,7 +142,8 @@ fn run() -> Result<(), Box> { let display_offset = matches .value_of("display_offset") .and_then(|s| parse_byte_count(s, block_size)) - .unwrap_or_else(|| skip_arg.unwrap_or(0)); + .or(skip_arg) + .unwrap_or(0); let stdout = io::stdout(); let mut stdout_lock = stdout.lock();