Skip to content

Commit

Permalink
don't use canonicalize()
Browse files Browse the repository at this point in the history
  • Loading branch information
gilescope authored Aug 30, 2021
1 parent 3192cd9 commit 724741d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/license.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ pub(crate) fn load_and_compile_template(
// rather than whatever dir cargo fmt was run from.
let current = std::env::current_dir().expect("pwd");
std::env::set_current_dir(root_dir).expect("alter pwd");
if let Ok(abs_path) = path.canonicalize() {
if let Ok(abs_path) = absolute_path(path) {
path = abs_path;
}
std::env::set_current_dir(current).expect("change pwd");
Expand Down

0 comments on commit 724741d

Please sign in to comment.