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.
2 parents dd8dbf3 + 3032c76 commit 2608aa8Copy full SHA for 2608aa8
tests/mock/clitools.rs
@@ -79,7 +79,7 @@ pub fn setup(s: Scenario, f: &dyn Fn(&mut Config)) {
79
_ => env::remove_var("RUST_BACKTRACE"),
80
}
81
82
- let current_exe_path = env::current_exe().map(PathBuf::from).unwrap();
+ let current_exe_path = env::current_exe().unwrap();
83
let mut exe_dir = current_exe_path.parent().unwrap();
84
if exe_dir.ends_with("deps") {
85
exe_dir = exe_dir.parent().unwrap();
0 commit comments