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_ {
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 > {
You can’t perform that action at this time.
0 commit comments