Use to_owned instead of to_string in gallery example
This commit is contained in:
parent
f3ae4266e9
commit
17395e8320
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ impl Image {
|
|||
if part.starts_with("width=") {
|
||||
format!("width={width}")
|
||||
} else {
|
||||
part.to_string()
|
||||
part.to_owned()
|
||||
}
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue