diff options
author | 2024-08-08 01:25:00 +0200 | |
---|---|---|
committer | 2024-08-08 01:25:00 +0200 | |
commit | 422568dee49fa6b814ae0131a3f88d4ae2be243b (patch) | |
tree | 39e458a2dd545b90f81d3066c29a74ec27dec505 /runtime/src/lib.rs | |
parent | d5ffe98ce939990e6c8ef6f40895cd1f9633fe18 (diff) | |
download | iced-422568dee49fa6b814ae0131a3f88d4ae2be243b.tar.gz iced-422568dee49fa6b814ae0131a3f88d4ae2be243b.tar.bz2 iced-422568dee49fa6b814ae0131a3f88d4ae2be243b.zip |
Introduce `black_box` and `chain` in `widget::operation`
Diffstat (limited to 'runtime/src/lib.rs')
-rw-r--r-- | runtime/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<T> { }, /// Run a widget operation. - Widget(Box<dyn widget::Operation<()>>), + Widget(Box<dyn widget::Operation>), /// Run a clipboard action. Clipboard(clipboard::Action), @@ -79,7 +79,7 @@ pub enum Action<T> { impl<T> Action<T> { /// 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)) } |