diff options
author | 2024-08-08 01:25:00 +0200 | |
---|---|---|
committer | 2024-08-08 01:25:00 +0200 | |
commit | 422568dee49fa6b814ae0131a3f88d4ae2be243b (patch) | |
tree | 39e458a2dd545b90f81d3066c29a74ec27dec505 /examples | |
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 'examples')
-rw-r--r-- | examples/toast/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs index 040c19bd..8f6a836e 100644 --- a/examples/toast/src/main.rs +++ b/examples/toast/src/main.rs @@ -347,7 +347,7 @@ mod toast { state: &mut Tree, layout: Layout<'_>, renderer: &Renderer, - operation: &mut dyn Operation<()>, + operation: &mut dyn Operation, ) { operation.container(None, layout.bounds(), &mut |operation| { self.content.as_widget().operate( @@ -589,7 +589,7 @@ mod toast { &mut self, layout: Layout<'_>, renderer: &Renderer, - operation: &mut dyn widget::Operation<()>, + operation: &mut dyn widget::Operation, ) { operation.container(None, layout.bounds(), &mut |operation| { self.toasts |