Skip to content

Commit

Permalink
Clean up dead code and annotate not-cleanable code (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
cocuh authored Jul 20, 2024
1 parent 89780ee commit 19bf216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/assertions/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,12 +639,6 @@ mod tests {

use super::*;

#[derive(Debug, PartialEq)]
struct LongDebugObject {
nested: Vec<i32>,
plain: String,
}

#[test]
fn contains() {
assert_that!(vec![1, 2, 3].iter()).contains(&3);
Expand Down
4 changes: 3 additions & 1 deletion src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ impl Fact {

#[cfg(test)]
mod tests {
use crate::testing::CheckThatResult;
use crate::*;
use crate::testing::CheckThatResult;

use super::*;

Expand Down Expand Up @@ -661,7 +661,9 @@ kv_key: [ "1", "2", "3" ]"#
);
#[derive(Debug)]
struct LongOutputData<'a> {
#[allow(dead_code)]
val: Option<i32>,
#[allow(dead_code)]
nested: Vec<&'a str>,
}
assert_eq!(
Expand Down

0 comments on commit 19bf216

Please sign in to comment.