Replace with function with Function trait

This commit is contained in:
Héctor Ramón Jiménez 2025-02-11 10:36:45 +01:00
parent 080db34849
commit eab723866e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 75 additions and 79 deletions

View file

@ -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)) => {