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
|
|
@ -559,7 +559,7 @@ fn ferris<'a>(
|
|||
if cfg!(target_arch = "wasm32") {
|
||||
image("tour/images/ferris.png")
|
||||
} else {
|
||||
image(format!("{}/images/ferris.png", env!("CARGO_MANIFEST_DIR")))
|
||||
image(concat!(env!("CARGO_MANIFEST_DIR"), "/images/ferris.png"))
|
||||
}
|
||||
.filter_method(filter_method)
|
||||
.width(width),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue