Skip to content

Commit

Permalink
style: cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Shi-Raida committed Oct 29, 2024
1 parent 60fe545 commit 00d77b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/knapsack/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(clippy::needless_range_loop)]

use aries::core::{IntCst, Lit, INT_CST_MAX};
use aries::core::{IntCst, INT_CST_MAX};
use aries::model::extensions::AssignmentExt;
use aries::model::lang::linear::LinearSum;
use aries::model::lang::IVar;
Expand Down
3 changes: 1 addition & 2 deletions solver/src/reasoners/eq/dense.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ mod tests {

fn random_model(seed: u64) -> Model<String> {
let mut rng = SmallRng::seed_from_u64(seed);
let objects = vec!["alice", "bob", "chloe", "donald", "elon"];
let objects = ["alice", "bob", "chloe", "donald", "elon"];
let num_objects = rng.gen_range(1..5);
let objects = objects[0..num_objects].to_vec();
let symbols = SymbolTable::from(vec![("obj", objects.clone())]);
Expand All @@ -1225,7 +1225,6 @@ mod tests {

let num_scopes = rng.gen_range(0..3);
let scopes = (0..=num_scopes)
.into_iter()
.map(|i| {
if i == 0 {
Lit::TRUE
Expand Down

0 comments on commit 00d77b5

Please sign in to comment.