diff --git a/solver/src/reasoners/cp/mod.rs b/solver/src/reasoners/cp/mod.rs index bf4186fe3..1af23f7eb 100644 --- a/solver/src/reasoners/cp/mod.rs +++ b/solver/src/reasoners/cp/mod.rs @@ -34,7 +34,6 @@ use std::collections::{HashMap, HashSet}; #[derive(Clone, Default)] pub struct Watches { propagations: RefMap>, - empty: [PropagatorId; 0], } impl Watches { @@ -71,7 +70,7 @@ impl Watches { /// Returns all propagators fn get_ub_watches(&self, var: impl Into) -> &[PropagatorId] { let var = var.into(); - self.propagations.get(var).map(|v| v.as_slice()).unwrap_or(&self.empty) + self.propagations.get(var).map(|v| v.as_slice()).unwrap_or(&[]) } }