File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -1568,13 +1568,14 @@ fn local_fingerprints_deps(
1568
1568
local. push ( LocalFingerprint :: RerunIfChanged { output, paths } ) ;
1569
1569
}
1570
1570
1571
- for var in deps. rerun_if_env_changed . iter ( ) {
1572
- let val = env:: var ( var) . ok ( ) ;
1573
- local. push ( LocalFingerprint :: RerunIfEnvChanged {
1574
- var : var. clone ( ) ,
1575
- val,
1576
- } ) ;
1577
- }
1571
+ local. extend (
1572
+ deps. rerun_if_env_changed
1573
+ . iter ( )
1574
+ . map ( |var| LocalFingerprint :: RerunIfEnvChanged {
1575
+ var : var. clone ( ) ,
1576
+ val : env:: var ( var) . ok ( ) ,
1577
+ } ) ,
1578
+ ) ;
1578
1579
1579
1580
local
1580
1581
}
@@ -1697,14 +1698,13 @@ pub fn parse_dep_info(
1697
1698
} ;
1698
1699
let mut ret = RustcDepInfo :: default ( ) ;
1699
1700
ret. env = info. env ;
1700
- for ( ty, path) in info . files {
1701
- let path = match ty {
1701
+ ret . files . extend ( info . files . into_iter ( ) . map ( | ( ty, path) | {
1702
+ match ty {
1702
1703
DepInfoPathType :: PackageRootRelative => pkg_root. join ( path) ,
1703
1704
// N.B. path might be absolute here in which case the join will have no effect
1704
1705
DepInfoPathType :: TargetRootRelative => target_root. join ( path) ,
1705
- } ;
1706
- ret. files . push ( path) ;
1707
- }
1706
+ }
1707
+ } ) ) ;
1708
1708
Ok ( Some ( ret) )
1709
1709
}
1710
1710
You can’t perform that action at this time.
0 commit comments