We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a9da21 + c652829 commit efac01cCopy full SHA for efac01c
solver/src/reasoners/cp/mod.rs
@@ -34,7 +34,6 @@ use std::collections::{HashMap, HashSet};
34
#[derive(Clone, Default)]
35
pub struct Watches {
36
propagations: RefMap<SignedVar, Vec<PropagatorId>>,
37
- empty: [PropagatorId; 0],
38
}
39
40
impl Watches {
@@ -71,7 +70,7 @@ impl Watches {
71
70
/// Returns all propagators
72
fn get_ub_watches(&self, var: impl Into<SignedVar>) -> &[PropagatorId] {
73
let var = var.into();
74
- self.propagations.get(var).map(|v| v.as_slice()).unwrap_or(&self.empty)
+ self.propagations.get(var).map(|v| v.as_slice()).unwrap_or(&[])
75
76
77
0 commit comments