Skip to content

Commit 2608aa8

Browse files
authored
Merge pull request #2211 from lzutao/nomap
Remove needless map
2 parents dd8dbf3 + 3032c76 commit 2608aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/mock/clitools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub fn setup(s: Scenario, f: &dyn Fn(&mut Config)) {
7979
_ => env::remove_var("RUST_BACKTRACE"),
8080
}
8181

82-
let current_exe_path = env::current_exe().map(PathBuf::from).unwrap();
82+
let current_exe_path = env::current_exe().unwrap();
8383
let mut exe_dir = current_exe_path.parent().unwrap();
8484
if exe_dir.ends_with("deps") {
8585
exe_dir = exe_dir.parent().unwrap();

0 commit comments

Comments
 (0)