From 17395e83201d1e5e00be46c1fb1d6fa18f3d87f1 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 9 Feb 2025 06:40:48 +0100 Subject: Use `to_owned` instead of `to_string` in `gallery` example --- examples/gallery/src/civitai.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gallery/src/civitai.rs b/examples/gallery/src/civitai.rs index 457091e9..8e57db3d 100644 --- a/examples/gallery/src/civitai.rs +++ b/examples/gallery/src/civitai.rs @@ -71,7 +71,7 @@ impl Image { if part.starts_with("width=") { format!("width={width}") } else { - part.to_string() + part.to_owned() } }) .collect::>() -- cgit