File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1036,15 +1036,15 @@ mod impl_ {
1036
1036
env:: split_paths ( & install_dir)
1037
1037
. map ( |p| p. join ( tool) )
1038
1038
. find ( |p| p. exists ( ) )
1039
- . map ( |path| Tool :: with_family ( path. into ( ) , MSVC_FAMILY ) )
1039
+ . map ( |path| Tool :: with_family ( path, MSVC_FAMILY ) )
1040
1040
} ;
1041
1041
1042
1042
// Take the path of tool for the vc install directory.
1043
1043
get_tool ( vc_install_dir)
1044
1044
// Take the path of tool for the vs install directory.
1045
1045
. or_else ( || get_tool ( vs_install_dir) )
1046
1046
// 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) )
1048
1048
}
1049
1049
1050
1050
pub ( super ) fn find_msvc_15plus ( _tool : & str , _target : TargetArch < ' _ > ) -> Option < Tool > {
You can’t perform that action at this time.
0 commit comments