aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers
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/helpers
parent3bbf036e01b9c8314c1d52ea38dfa6e5a7cc9e3d (diff)
downloadvt100-rust-905da12c2f7802ed842a94192f837d42f9c5f0ca.tar.gz
vt100-rust-905da12c2f7802ed842a94192f837d42f9c5f0ca.zip
clean up clippy stuff
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/fixtures.rs4
-rw-r--r--tests/helpers/mod.rs1
2 files changed, 1 insertions, 4 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);