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