Skip to content

Commit

Permalink
Merge pull request #446 from Chia-Network/assert-warning
Browse files Browse the repository at this point in the history
Fix nightly clippy warning on assert_eq
  • Loading branch information
Rigidity committed Mar 26, 2024
2 parents 86d7a9b + 57a00e7 commit 49b3bf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/chia-consensus/src/gen/conditions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4753,7 +4753,7 @@ fn test_message_conditions_single_spend(#[case] test_case: &str, #[case] expect:
};

if let Ok((a, conds)) = ret {
assert_eq!(expect_pass, true);
assert!(expect_pass);
assert_eq!(conds.cost, 0);
assert_eq!(conds.spends.len(), 1);
let spend = &conds.spends[0];
Expand Down Expand Up @@ -5168,7 +5168,7 @@ fn test_message_conditions_two_spends(
};

if let Ok((a, conds)) = ret {
assert_eq!(expect_pass, true);
assert!(expect_pass);
assert_eq!(conds.cost, 0);
assert_eq!(conds.spends.len(), 2);

Expand Down

0 comments on commit 49b3bf0

Please sign in to comment.