From 422568dee49fa6b814ae0131a3f88d4ae2be243b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 8 Aug 2024 01:25:00 +0200 Subject: Introduce `black_box` and `chain` in `widget::operation` --- runtime/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/src/lib.rs') diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index f27657d1..7230fc73 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -59,7 +59,7 @@ pub enum Action { }, /// Run a widget operation. - Widget(Box>), + Widget(Box), /// Run a clipboard action. Clipboard(clipboard::Action), @@ -79,7 +79,7 @@ pub enum Action { impl Action { /// Creates a new [`Action::Widget`] with the given [`widget::Operation`]. - pub fn widget(operation: impl widget::Operation<()> + 'static) -> Self { + pub fn widget(operation: impl widget::Operation + 'static) -> Self { Self::Widget(Box::new(operation)) } -- cgit