summaryrefslogtreecommitdiffstats
path: root/examples/gallery/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gallery/src/main.rs')
-rw-r--r--examples/gallery/src/main.rs6
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)) => {