Skip to content

Commit

Permalink
Fix: manual-range-contains clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
elmomoilanen committed Aug 12, 2022
1 parent d823cc9 commit 4764b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fn get_proper_eq_type(coefs: &[i128], modu: u128, eq_type: EqType) -> EquaKind {
let smaller_modu = modu <= U64_VALID_MAX;
let smaller_coefs = coefs
.iter()
.all(|&coef| coef >= I64_VALID_MIN && coef <= I64_VALID_MAX);
.all(|&coef| (I64_VALID_MIN..=I64_VALID_MAX).contains(&coef));

match (eq_type, smaller_coefs && smaller_modu) {
(EqType::Linear, true) => EquaKind::LinearI64(LinEqSigned::<i64, u64> {
Expand Down

0 comments on commit 4764b89

Please sign in to comment.