Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dharkness committed May 29, 2023
1 parent 3c48cfe commit 9d112f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/puzzle/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use rand::seq::SliceRandom;

use crate::layout::{Cell, Known, KnownSet};
use crate::printers::{print_candidates, print_values};
use crate::solvers::deadly_rectangles::creates_deadly_rectangles;
use crate::solvers::intersection_removals::find_intersection_removals;

use super::{Board, Effects};
Expand Down Expand Up @@ -78,14 +77,14 @@ impl Generator {
let mut clone = board;
let mut effects = Effects::new();
clone.set_known(cell, candidate, &mut effects);
if let Some(_) = effects.apply_all(&mut clone) {
if effects.apply_all(&mut clone).is_some() {
// print_candidates(&clone);
// println!("intersection removals caused errors");
continue;
}

effects = find_intersection_removals(&clone);
if let Some(_) = effects.apply_all(&mut clone) {
if effects.apply_all(&mut clone).is_some() {
// print_candidates(&clone);
// println!("intersection removals caused errors");
continue;
Expand Down

0 comments on commit 9d112f5

Please sign in to comment.