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
|
|
@ -95,9 +95,9 @@ impl Image {
|
|||
let i_am_ferris = column![
|
||||
"Hello!",
|
||||
Element::from(
|
||||
image(format!(
|
||||
"{}/../tour/images/ferris.png",
|
||||
env!("CARGO_MANIFEST_DIR")
|
||||
image(concat!(
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
"/../tour/images/ferris.png",
|
||||
))
|
||||
.width(self.width)
|
||||
.content_fit(self.content_fit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue