Use to_owned instead of to_string in gallery example

This commit is contained in:
Héctor Ramón Jiménez 2025-02-09 06:40:48 +01:00
parent f3ae4266e9
commit 17395e8320
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -71,7 +71,7 @@ impl Image {
if part.starts_with("width=") {
format!("width={width}")
} else {
part.to_string()
part.to_owned()
}
})
.collect::<Vec<_>>()