From df1c36e5a775fbabd6d9186c4954ad8df4fb4aa6 Mon Sep 17 00:00:00 2001 From: Sharif Haason Date: Wed, 16 Nov 2022 15:28:48 -0500 Subject: [PATCH] Satisfy clippy --- src/bin/hexyl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/hexyl.rs b/src/bin/hexyl.rs index ad383d4..03d3579 100644 --- a/src/bin/hexyl.rs +++ b/src/bin/hexyl.rs @@ -61,7 +61,7 @@ fn run() -> Result<(), AnyhowError> { .short('l') .num_args(1) .value_name("N") - .conflicts_with_all(&["length", "bytes"]) + .conflicts_with_all(["length", "bytes"]) .hide(true) .help("Yet another alias for -n/--length"), ) @@ -305,7 +305,7 @@ fn run() -> Result<(), AnyhowError> { if (terminal_width - offset) / col_width < 1 { 1 } else { - ((terminal_width - offset) / col_width) as u64 + (terminal_width - offset) / col_width } };