Replace with function with Function trait
This commit is contained in:
parent
080db34849
commit
eab723866e
7 changed files with 75 additions and 79 deletions
|
|
@ -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)) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue