Skip to content

Commit b15fb81

Browse files
committed
Do as Clippy says
1 parent fa9b7ea commit b15fb81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type PrependedPath = Result<OsString, env::JoinPathsError>;
1010
/// *not* update `PATH` in the environment.
1111
pub fn prepend_to_path(dir: &Path, path: Option<OsString>) -> PrependedPath {
1212
Ok(match path {
13-
None => env::join_paths(&[dir])?,
13+
None => env::join_paths([dir])?,
1414
Some(path) => {
1515
let mut paths = vec![dir.to_path_buf()];
1616
paths.extend(env::split_paths(&path).filter(|path| path != dir));

0 commit comments

Comments
 (0)