Skip to content

Commit 724741d

Browse files
authored
don't use canonicalize()
1 parent 3192cd9 commit 724741d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/license.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ pub(crate) fn load_and_compile_template(
222222
// rather than whatever dir cargo fmt was run from.
223223
let current = std::env::current_dir().expect("pwd");
224224
std::env::set_current_dir(root_dir).expect("alter pwd");
225-
if let Ok(abs_path) = path.canonicalize() {
225+
if let Ok(abs_path) = absolute_path(path) {
226226
path = abs_path;
227227
}
228228
std::env::set_current_dir(current).expect("change pwd");

0 commit comments

Comments
 (0)