From 905da12c2f7802ed842a94192f837d42f9c5f0ca Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 13 Dec 2021 23:30:56 -0500 Subject: clean up clippy stuff --- tests/helpers/fixtures.rs | 4 +--- tests/helpers/mod.rs | 1 - tests/quickcheck.rs | 1 - tests/scroll.rs | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/helpers/fixtures.rs b/tests/helpers/fixtures.rs index f2076fb..c0f8b75 100644 --- a/tests/helpers/fixtures.rs +++ b/tests/helpers/fixtures.rs @@ -33,6 +33,7 @@ pub struct FixtureCell { } impl FixtureCell { + #[allow(dead_code)] pub fn from_cell(cell: &vt100::Cell) -> Self { Self { contents: cell.contents(), @@ -149,7 +150,6 @@ where } } -#[allow(clippy::trivially_copy_pass_by_ref)] fn serialize_color( color: &vt100::Color, serializer: S, @@ -182,7 +182,6 @@ where } } -#[allow(clippy::trivially_copy_pass_by_ref)] fn serialize_mouse_protocol_mode( mode: &vt100::MouseProtocolMode, serializer: S, @@ -215,7 +214,6 @@ where } } -#[allow(clippy::trivially_copy_pass_by_ref)] fn serialize_mouse_protocol_encoding( encoding: &vt100::MouseProtocolEncoding, serializer: S, diff --git a/tests/helpers/mod.rs b/tests/helpers/mod.rs index 53e4f42..dc08ce5 100644 --- a/tests/helpers/mod.rs +++ b/tests/helpers/mod.rs @@ -125,7 +125,6 @@ pub fn compare_screens( true } -#[allow(dead_code)] pub fn contents_formatted_reproduces_state(input: &[u8]) -> bool { let mut parser = vt100::Parser::default(); parser.process(input); diff --git a/tests/quickcheck.rs b/tests/quickcheck.rs index 64fd027..efb6f63 100644 --- a/tests/quickcheck.rs +++ b/tests/quickcheck.rs @@ -24,7 +24,6 @@ impl quickcheck::Arbitrary for TerminalInput { } } -#[allow(clippy::many_single_char_names)] fn choose_terminal_input_fragment(g: &mut G) -> Vec { enum Fragment { Text, diff --git a/tests/scroll.rs b/tests/scroll.rs index 94eb5bc..21e0ae6 100644 --- a/tests/scroll.rs +++ b/tests/scroll.rs @@ -10,7 +10,6 @@ fn origin_mode() { helpers::fixture("origin_mode"); } -#[allow(clippy::cognitive_complexity)] #[test] fn scrollback() { let mut parser = vt100::Parser::new(24, 80, 10); -- cgit v1.2.3-54-g00ecf