We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3192cd9 commit 724741dCopy full SHA for 724741d
src/config/license.rs
@@ -222,7 +222,7 @@ pub(crate) fn load_and_compile_template(
222
// rather than whatever dir cargo fmt was run from.
223
let current = std::env::current_dir().expect("pwd");
224
std::env::set_current_dir(root_dir).expect("alter pwd");
225
- if let Ok(abs_path) = path.canonicalize() {
+ if let Ok(abs_path) = absolute_path(path) {
226
path = abs_path;
227
}
228
std::env::set_current_dir(current).expect("change pwd");
0 commit comments