diff --git a/dsl/src/dsl.rs b/dsl/src/dsl.rs index a522258..4372ff4 100644 --- a/dsl/src/dsl.rs +++ b/dsl/src/dsl.rs @@ -405,7 +405,6 @@ impl<'t, T: Debug + 't> DslNsMap<'t, T> { )? ]); }); - #[macro_export] macro_rules!dsl_exprs((|$state:ident|->$Type:ty$({ $($name:literal ($($arg:ident:$ty:ty),* $(,)?) => $body:expr),* $(,)? })?)=>{ diff --git a/output/src/space.rs b/output/src/space.rs index 3e1298b..3e850fd 100644 --- a/output/src/space.rs +++ b/output/src/space.rs @@ -208,6 +208,13 @@ pub struct Measure { pub y: Arc, } +impl PartialEq for Measure { + fn eq (&self, other: &Self) -> bool { + self.x.load(Relaxed) == other.x.load(Relaxed) && + self.y.load(Relaxed) == other.y.load(Relaxed) + } +} + // TODO: 🡘 🡙 ←🡙→ indicator to expand window when too small impl Content for Measure { fn render (&self, to: &mut E) {