Replace format! with concat! for string literals

This commit is contained in:
Integral 2024-12-21 12:24:19 +08:00 committed by Héctor Ramón Jiménez
parent 80a3ca7af4
commit 6f5b53eec0
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 10 additions and 10 deletions

View file

@ -25,9 +25,9 @@ impl Tiger {
}
fn view(&self) -> Element<'_, Message> {
let handle = svg::Handle::from_path(format!(
"{}/resources/tiger.svg",
env!("CARGO_MANIFEST_DIR")
let handle = svg::Handle::from_path(concat!(
env!("CARGO_MANIFEST_DIR"),
"/resources/tiger.svg",
));
let svg =