summaryrefslogtreecommitdiffstats
path: root/examples/gallery
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:28:47 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:37:14 +0100
commit91af1c5ed65d75d9da62d29254460b5ed79f96eb (patch)
tree4b05400d50e6a94e4f7049945c01fec2beffb2b2 /examples/gallery
parent9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd (diff)
downloadiced-91af1c5ed65d75d9da62d29254460b5ed79f96eb.tar.gz
iced-91af1c5ed65d75d9da62d29254460b5ed79f96eb.tar.bz2
iced-91af1c5ed65d75d9da62d29254460b5ed79f96eb.zip
Update all `examples` to Rust 2024
Diffstat (limited to 'examples/gallery')
-rw-r--r--examples/gallery/Cargo.toml2
-rw-r--r--examples/gallery/src/civitai.rs2
-rw-r--r--examples/gallery/src/main.rs6
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/gallery/Cargo.toml b/examples/gallery/Cargo.toml
index 6e8aba06..5161f368 100644
--- a/examples/gallery/Cargo.toml
+++ b/examples/gallery/Cargo.toml
@@ -2,7 +2,7 @@
name = "gallery"
version = "0.1.0"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
-edition = "2021"
+edition = "2024"
publish = false
[dependencies]
diff --git a/examples/gallery/src/civitai.rs b/examples/gallery/src/civitai.rs
index 04589030..b529d619 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;
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;