Skip to content

Commit 4a9a58d

Browse files
committed
Don't interpolate static string
1 parent aecb4f0 commit 4a9a58d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

crates/pixi_trampoline/src/main.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ fn read_metadata(current_exe: &Path) -> miette::Result<Metadata> {
2525
// the metadata file is next to the current executable parent folder,
2626
// under trampoline_configuration/current_exe_name.json
2727
if let Some(exe_parent) = current_exe.parent() {
28-
let metadata_path = exe_parent.join(TRAMPOLINE_CONFIGURATION).join(format!(
29-
"{}{}",
30-
executable_from_path(current_exe),
31-
".json"
32-
));
28+
let metadata_path = exe_parent
29+
.join(TRAMPOLINE_CONFIGURATION)
30+
.join(format!("{}.json", executable_from_path(current_exe),));
3331
let metadata_file = File::open(&metadata_path)
3432
.into_diagnostic()
3533
.wrap_err(format!("Couldn't open {:?}", metadata_path))?;

0 commit comments

Comments
 (0)