diff options
author | 2025-02-11 10:36:45 +0100 | |
---|---|---|
committer | 2025-02-11 10:36:45 +0100 | |
commit | eab723866e1dc94ebd6d7c5c0c3ef191c80bcf59 (patch) | |
tree | 2b5a476f9da5155fd13e68957a9bbf3e3ab352a1 /examples/gallery | |
parent | 080db348495f6e92f13391d3b222c5a2769b5fc1 (diff) | |
download | iced-eab723866e1dc94ebd6d7c5c0c3ef191c80bcf59.tar.gz iced-eab723866e1dc94ebd6d7c5c0c3ef191c80bcf59.tar.bz2 iced-eab723866e1dc94ebd6d7c5c0c3ef191c80bcf59.zip |
Replace `with` function with `Function` trait
Diffstat (limited to 'examples/gallery')
-rw-r--r-- | examples/gallery/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/gallery/src/main.rs b/examples/gallery/src/main.rs index 0ed2a862..abafaf2d 100644 --- a/examples/gallery/src/main.rs +++ b/examples/gallery/src/main.rs @@ -14,7 +14,7 @@ use iced::widget::{ }; use iced::window; use iced::{ - color, with, Animation, ContentFit, Element, Fill, Subscription, Task, + color, Animation, ContentFit, Element, Fill, Function, Subscription, Task, Theme, }; @@ -100,8 +100,8 @@ impl Gallery { width: Preview::WIDTH, height: Preview::HEIGHT, }), - with(Message::BlurhashDecoded, id), - with(Message::ThumbnailDownloaded, id), + Message::BlurhashDecoded.with(id), + Message::ThumbnailDownloaded.with(id), ) } Message::ImageDownloaded(Ok(rgba)) => { |