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 fa9b7ea commit b15fb81Copy full SHA for b15fb81
src/util.rs
@@ -10,7 +10,7 @@ type PrependedPath = Result<OsString, env::JoinPathsError>;
10
/// *not* update `PATH` in the environment.
11
pub fn prepend_to_path(dir: &Path, path: Option<OsString>) -> PrependedPath {
12
Ok(match path {
13
- None => env::join_paths(&[dir])?,
+ None => env::join_paths([dir])?,
14
Some(path) => {
15
let mut paths = vec![dir.to_path_buf()];
16
paths.extend(env::split_paths(&path).filter(|path| path != dir));
0 commit comments