From 85c305385bc08ef805afb113f677c510027a7234 Mon Sep 17 00:00:00 2001 From: unspeaker Date: Tue, 29 Jul 2025 22:07:03 +0300 Subject: [PATCH] fix(input): wat --- input/src/input_dsl.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, "*") });