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 baf28c8 commit 3032c76Copy full SHA for 3032c76
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