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
|
|
@ -53,9 +53,9 @@ impl Editor {
|
|||
},
|
||||
Task::batch([
|
||||
Task::perform(
|
||||
load_file(format!(
|
||||
"{}/src/main.rs",
|
||||
env!("CARGO_MANIFEST_DIR")
|
||||
load_file(concat!(
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
"/src/main.rs",
|
||||
)),
|
||||
Message::FileOpened,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue