Skip to content

Commit 8858713

Browse files
CurryPseudocurryyzheng
and
curryyzheng
authored
fix: find_msvc_environment argument order (#628)
Co-authored-by: curryyzheng <[email protected]>
1 parent b2f6b14 commit 8858713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/windows_registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ mod impl_ {
223223
}
224224

225225
/// Attempt to find the tool using environment variables set by vcvars.
226-
pub fn find_msvc_environment(target: &str, tool: &str) -> Option<Tool> {
226+
pub fn find_msvc_environment(tool: &str, target: &str) -> Option<Tool> {
227227
// Early return if the environment doesn't contain a VC install.
228228
if env::var_os("VCINSTALLDIR").is_none() {
229229
return None;

0 commit comments

Comments
 (0)