Skip to content

Commit

Permalink
chore: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimo committed Aug 30, 2024
1 parent 71e515f commit 41ca398
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion examples/smt/tests/smt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ fn test_max() {
})
.collect_vec();

let &[pa, pb, pc] = pais.as_slice() else { unreachable!() };
let &[_pa, pb, pc] = pais.as_slice() else {
unreachable!()
};
let &[a, b, c] = ais.as_slice() else { unreachable!() };

let max = model.new_ivar(0, 100, "max");
Expand Down
5 changes: 1 addition & 4 deletions solver/src/reif/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ impl ReifExpr {

/// Returns true iff a given expression can be negated.
pub fn negatable(&self) -> bool {
match self {
ReifExpr::Alternative(_) | ReifExpr::EqMax(_) => false,
_ => true,
}
!matches!(self, ReifExpr::Alternative(_) | ReifExpr::EqMax(_))
}

pub fn eval(&self, assignment: &Domains) -> Option<bool> {
Expand Down

0 comments on commit 41ca398

Please sign in to comment.