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 b6fc0a8 commit ac9fe9eCopy full SHA for ac9fe9e
test/test_spawn.rs
@@ -9,7 +9,7 @@ fn which(exe_name: &str) -> Option<std::path::PathBuf> {
9
std::env::var_os("PATH").and_then(|paths| {
10
std::env::split_paths(&paths)
11
.filter_map(|dir| {
12
- let full_path = dir.join(&exe_name);
+ let full_path = dir.join(exe_name);
13
if full_path.is_file() {
14
Some(full_path)
15
} else {
0 commit comments