From 3f17c0e2afb8ff7ffa2adb4b7573db219cdc1cc0 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 16 Nov 2021 01:21:55 -0500 Subject: clippy --- tests/input.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/input.rs b/tests/input.rs index 80bdbd6..c341717 100644 --- a/tests/input.rs +++ b/tests/input.rs @@ -58,6 +58,8 @@ fn test_async() { } } +// the structure of the if statements here are easier to interpret uncollapsed +#[allow(clippy::collapsible_else_if)] fn run_input_test( fixture: &mut fixtures::BuiltFixture, utf8: bool, @@ -93,12 +95,11 @@ fn run_input_test( assert_line(&mut r, "Up: [27, 91, 65]"); } else { if single { + assert_line(&mut r, "Byte(27): [27]"); if utf8 { - assert_line(&mut r, "Byte(27): [27]"); assert_line(&mut r, "Char('['): [91]"); assert_line(&mut r, "Char('A'): [65]"); } else { - assert_line(&mut r, "Byte(27): [27]"); assert_line(&mut r, "Byte(91): [91]"); assert_line(&mut r, "Byte(65): [65]"); } -- cgit v1.2.3-54-g00ecf