1
0
mirror of https://github.com/ellmau/adf-obdd.git synced 2025-12-19 09:29:36 +01:00

Fix rustfmt

This commit is contained in:
Stefan Ellmauthaler 2022-06-21 18:16:13 +02:00
parent e78cd57210
commit e7f38c100b
Failed to extract signature

View File

@ -85,7 +85,10 @@ impl NoGood {
/// The parameter _update_ is set to [`true`] if there has been an update and to [`false`] otherwise
pub fn update_term_vec(&self, term_vec: &[Term], update: &mut bool) -> Vec<Term> {
*update = false;
term_vec.iter().enumerate().map(|(idx,val)|{
term_vec
.iter()
.enumerate()
.map(|(idx, val)| {
let idx: u32 = idx.try_into().expect(
"no-good learner implementation is based on the assumption \
that only u32::MAX-many variables are in place",
@ -102,7 +105,8 @@ impl NoGood {
} else {
*val
}
}).collect()
})
.collect()
}
/// Given a [NoGood] and another one, conclude a non-conflicting value which can be concluded on basis of the given one.