diff --git a/input/src/input_dsl.rs b/input/src/input_dsl.rs index 855272d..bb3c353 100644 --- a/input/src/input_dsl.rs +++ b/input/src/input_dsl.rs @@ -18,7 +18,7 @@ type EventMapImpl = BTreeMap>>; pub struct EventMap(EventMapImpl); /// An input binding. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Binding { pub command: C, pub condition: Option, @@ -27,7 +27,8 @@ pub struct Binding { } /// Input bindings are only returned if this evaluates to true -pub struct Condition(Boxbool + Send + Sync>); +#[derive(Clone)] +pub struct Condition(Arcbool + Send + Sync>>); impl_debug!(Condition |self, w| { write!(w, "*") });