aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-13 23:30:56 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-13 23:42:11 -0500
commit905da12c2f7802ed842a94192f837d42f9c5f0ca (patch)
tree139efb05ae9d7dc18a179f4a7a397d9ea9126f22 /tests
parent3bbf036e01b9c8314c1d52ea38dfa6e5a7cc9e3d (diff)
downloadvt100-rust-905da12c2f7802ed842a94192f837d42f9c5f0ca.tar.gz
vt100-rust-905da12c2f7802ed842a94192f837d42f9c5f0ca.zip
clean up clippy stuff
Diffstat (limited to 'tests')
-rw-r--r--tests/helpers/fixtures.rs4
-rw-r--r--tests/helpers/mod.rs1
-rw-r--r--tests/quickcheck.rs1
-rw-r--r--tests/scroll.rs1
4 files changed, 1 insertions, 6 deletions
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<S>(
color: &vt100::Color,
serializer: S,
@@ -182,7 +182,6 @@ where
}
}
-#[allow(clippy::trivially_copy_pass_by_ref)]
fn serialize_mouse_protocol_mode<S>(
mode: &vt100::MouseProtocolMode,
serializer: S,
@@ -215,7 +214,6 @@ where
}
}
-#[allow(clippy::trivially_copy_pass_by_ref)]
fn serialize_mouse_protocol_encoding<S>(
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: quickcheck::Gen>(g: &mut G) -> Vec<u8> {
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);