Final fixes

This commit is contained in:
2022-08-19 17:19:45 +02:00
parent 891d78c112
commit f506f0f1ab
5 changed files with 20 additions and 17 deletions

View File

@@ -35,7 +35,6 @@ impl State {
}
pub fn insert_vec<S>(mut self, k: &S, v: &[Expr]) -> Option<Self>
where S: AsRef<str> + ToString + ?Sized + Debug {
eprintln!("{:?} + {k:?}-{v:?}", self.0);
if let Some(old) = self.0.get(k.as_ref()) {
if let Entry::Vec(val) = old {
if val.as_slice() != v {return None}
@@ -138,3 +137,9 @@ impl IntoIterator for State {
self.0.into_iter()
}
}
impl Debug for State {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self.0)
}
}