Skip to content

Commit

Permalink
Update pindakaas library
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekker1 committed Jun 13, 2024
1 parent 6df28c4 commit e519dbb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions crates/huub/src/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,7 @@ where
{
fn from(value: Cnf) -> Self {
let mut core: Sat = value.into();
let None = core.set_external_propagator(Some(Box::<Engine>::default())) else {
unreachable!()
};
core.set_external_propagator(Some(Engine::default()));
core.set_learn_callback(Some(trace_learned_clause));
Self { oracle: core }
}
Expand All @@ -372,9 +370,7 @@ where
fn clone(&self) -> Self {
let mut core = self.oracle.clone();
let engine = self.engine().clone();
let None = core.set_external_propagator(Some(Box::new(engine))) else {
unreachable!()
};
core.set_external_propagator(Some(engine));
core.set_learn_callback(Some(trace_learned_clause));
Self { oracle: core }
}
Expand Down

0 comments on commit e519dbb

Please sign in to comment.