From 19bf216433323dd9e4f460eee692ba0f4f1ee314 Mon Sep 17 00:00:00 2001 From: cocuh Date: Sun, 21 Jul 2024 02:25:50 +0900 Subject: [PATCH] Clean up dead code and annotate not-cleanable code (#125) --- src/assertions/iterator.rs | 6 ------ src/base.rs | 4 +++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/assertions/iterator.rs b/src/assertions/iterator.rs index fb3e440..fde400c 100644 --- a/src/assertions/iterator.rs +++ b/src/assertions/iterator.rs @@ -639,12 +639,6 @@ mod tests { use super::*; - #[derive(Debug, PartialEq)] - struct LongDebugObject { - nested: Vec, - plain: String, - } - #[test] fn contains() { assert_that!(vec![1, 2, 3].iter()).contains(&3); diff --git a/src/base.rs b/src/base.rs index fa190d6..f86442e 100644 --- a/src/base.rs +++ b/src/base.rs @@ -525,8 +525,8 @@ impl Fact { #[cfg(test)] mod tests { - use crate::testing::CheckThatResult; use crate::*; + use crate::testing::CheckThatResult; use super::*; @@ -661,7 +661,9 @@ kv_key: [ "1", "2", "3" ]"# ); #[derive(Debug)] struct LongOutputData<'a> { + #[allow(dead_code)] val: Option, + #[allow(dead_code)] nested: Vec<&'a str>, } assert_eq!(