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!(