diff options
author | 2025-02-21 19:21:10 +0100 | |
---|---|---|
committer | 2025-02-21 19:21:10 +0100 | |
commit | f1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa (patch) | |
tree | b2eeb7537ffd49bfbdd24c1a9580870eca99caa6 /examples/gallery/src | |
parent | 81ca3d2a223d62fbb48b93dcea5409f6212605fa (diff) | |
parent | 800a73ddd7d4a2e0b1ed23ec565cbc6325b3b7f0 (diff) | |
download | iced-f1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa.tar.gz iced-f1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa.tar.bz2 iced-f1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa.zip |
Merge pull request #2809 from iced-rs/rust-2024
Update to Rust 2024
Diffstat (limited to 'examples/gallery/src')
-rw-r--r-- | examples/gallery/src/civitai.rs | 4 | ||||
-rw-r--r-- | examples/gallery/src/main.rs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/gallery/src/civitai.rs b/examples/gallery/src/civitai.rs index 04589030..1102acae 100644 --- a/examples/gallery/src/civitai.rs +++ b/examples/gallery/src/civitai.rs @@ -1,6 +1,6 @@ use bytes::Bytes; use serde::Deserialize; -use sipper::{sipper, Straw}; +use sipper::{Straw, sipper}; use tokio::task; use std::fmt; @@ -62,7 +62,7 @@ impl Image { } pub fn download(self, size: Size) -> impl Straw<Rgba, Blurhash, Error> { - sipper(move |mut sender| async move { + sipper(async move |mut sender| { let client = reqwest::Client::new(); if let Size::Thumbnail { width, height } = size { diff --git a/examples/gallery/src/main.rs b/examples/gallery/src/main.rs index abafaf2d..caa11016 100644 --- a/examples/gallery/src/main.rs +++ b/examples/gallery/src/main.rs @@ -7,15 +7,15 @@ mod civitai; use crate::civitai::{Error, Id, Image, Rgba, Size}; use iced::animation; -use iced::time::{milliseconds, Instant}; +use iced::time::{Instant, milliseconds}; use iced::widget::{ button, center_x, container, horizontal_space, image, mouse_area, opaque, pop, row, scrollable, stack, }; use iced::window; use iced::{ - color, Animation, ContentFit, Element, Fill, Function, Subscription, Task, - Theme, + Animation, ContentFit, Element, Fill, Function, Subscription, Task, Theme, + color, }; use std::collections::HashMap; |