From 91af1c5ed65d75d9da62d29254460b5ed79f96eb Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 21 Feb 2025 01:28:47 +0100 Subject: Update all `examples` to Rust 2024 --- examples/gallery/src/civitai.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/gallery/src/civitai.rs') 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; -- cgit From 800a73ddd7d4a2e0b1ed23ec565cbc6325b3b7f0 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 21 Feb 2025 02:01:42 +0100 Subject: Use new `async ||` closure syntax :tada: --- examples/gallery/src/civitai.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/gallery/src/civitai.rs') diff --git a/examples/gallery/src/civitai.rs b/examples/gallery/src/civitai.rs index b529d619..1102acae 100644 --- a/examples/gallery/src/civitai.rs +++ b/examples/gallery/src/civitai.rs @@ -62,7 +62,7 @@ impl Image { } pub fn download(self, size: Size) -> impl Straw { - sipper(move |mut sender| async move { + sipper(async move |mut sender| { let client = reqwest::Client::new(); if let Size::Thumbnail { width, height } = size { -- cgit