From 5d92f07e21a8059d3c724ded162ac7d158c7bdc2 Mon Sep 17 00:00:00 2001 From: Mikhail Katychev Date: Fri, 22 Apr 2022 15:59:10 -0500 Subject: [PATCH] cargo clippy warning --- src/lib.rs | 2 +- tests/integration_tests.rs | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1f8de08..07382e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -481,7 +481,7 @@ mod tests { use super::*; - fn assert_print_all_output(input: Reader, expected_string: String) -> () { + fn assert_print_all_output(input: Reader, expected_string: String) { let mut output = vec![]; let mut printer = Printer::new(&mut output, false, true, true, BorderStyle::Unicode, true); diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index b4a1bff..9aef33a 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -270,21 +270,4 @@ mod display_settings { └─────────────────────────┴─────────────────────────┴────────┴────────┘\n", ); } - - // #[test] - // fn display_offset_and_skip() { - // hexyl() - // .arg("hello_world_elf64") - // .arg("--color=never") - // .arg("--display-offset=0x20") - // .arg("--skip=0x10") - // .arg("--length=0x10") - // .assert() - // .success() - // .stdout( - // "┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐\n\ - // │00000030│ 02 00 3e 00 01 00 00 00 ┊ 00 10 40 00 00 00 00 00 │•0>0•000┊0•@00000│\n\ - // └────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘\n", - // ); - // } }