Skip to content

Commit

Permalink
Don't use assert_eq with bool literal
Browse files Browse the repository at this point in the history
  • Loading branch information
TedDriggs committed Apr 13, 2022
1 parent 6811c7d commit 9bb4e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ mod implicit_default {

assert_eq!(person.first_name, "James");
assert_eq!(person.last_name, None);
assert_eq!(person.lefty.is_present(), false);
assert!(!person.lefty.is_present());
}
}

Expand Down Expand Up @@ -184,6 +184,6 @@ mod overridden_implicit_default {

assert_eq!(person.first_name, "Jane");
assert_eq!(person.last_name, Some("Archer".into()));
assert_eq!(person.lefty.is_present(), false);
assert!(!person.lefty.is_present());
}
}

0 comments on commit 9bb4e4a

Please sign in to comment.