Skip to content

Commit

Permalink
fix: no need to convert str to bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
MordechaiHadad committed Nov 5, 2024
1 parent 0136823 commit 533acf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/use_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ async fn add_to_path(installation_dir: PathBuf, config: ConfigFile) -> Result<()
shell => {
let files = shell.get_rcfiles()?;
for file in files {
what_the_path::shell::append_to_rcfile(file, &format!(". \"{}\"", env_paths[0].to_str().unwrap().as_bytes()))?;
what_the_path::shell::append_to_rcfile(file, &format!(". \"{}\"", env_paths[0].to_str().unwrap()))?;
}
}
}
Expand Down

0 comments on commit 533acf5

Please sign in to comment.