Replace format! with concat! for string literals
This commit is contained in:
parent
80a3ca7af4
commit
6f5b53eec0
4 changed files with 10 additions and 10 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue