Skip to content

Commit 98adccc

Browse files
Minor clippy fixes. (#1098)
1 parent 6a6107a commit 98adccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/windows/find_tools.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,15 +1036,15 @@ mod impl_ {
10361036
env::split_paths(&install_dir)
10371037
.map(|p| p.join(tool))
10381038
.find(|p| p.exists())
1039-
.map(|path| Tool::with_family(path.into(), MSVC_FAMILY))
1039+
.map(|path| Tool::with_family(path, MSVC_FAMILY))
10401040
};
10411041

10421042
// Take the path of tool for the vc install directory.
10431043
get_tool(vc_install_dir)
10441044
// Take the path of tool for the vs install directory.
10451045
.or_else(|| get_tool(vs_install_dir))
10461046
// Take the path of tool for the current path environment.
1047-
.or_else(|| env::var_os("PATH").and_then(|path| get_tool(path)))
1047+
.or_else(|| env::var_os("PATH").and_then(get_tool))
10481048
}
10491049

10501050
pub(super) fn find_msvc_15plus(_tool: &str, _target: TargetArch<'_>) -> Option<Tool> {

0 commit comments

Comments
 (0)