Skip to content

Commit

Permalink
Minor clippy fixes. (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Jun 21, 2024
1 parent 6a6107a commit 98adccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/windows/find_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1036,15 +1036,15 @@ mod impl_ {
env::split_paths(&install_dir)
.map(|p| p.join(tool))
.find(|p| p.exists())
.map(|path| Tool::with_family(path.into(), MSVC_FAMILY))
.map(|path| Tool::with_family(path, MSVC_FAMILY))
};

// Take the path of tool for the vc install directory.
get_tool(vc_install_dir)
// Take the path of tool for the vs install directory.
.or_else(|| get_tool(vs_install_dir))
// Take the path of tool for the current path environment.
.or_else(|| env::var_os("PATH").and_then(|path| get_tool(path)))
.or_else(|| env::var_os("PATH").and_then(get_tool))
}

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

0 comments on commit 98adccc

Please sign in to comment.