File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1581,20 +1581,20 @@ impl GlobalContext {
1581
1581
where
1582
1582
F : FnMut ( & Path ) -> CargoResult < ( ) > ,
1583
1583
{
1584
- let mut stash : HashSet < PathBuf > = HashSet :: new ( ) ;
1584
+ let mut seen = HashSet :: new ( ) ;
1585
1585
1586
1586
for current in paths:: ancestors ( pwd, self . search_stop_path . as_deref ( ) ) {
1587
1587
if let Some ( path) = self . get_file_path ( & current. join ( ".cargo" ) , "config" , true ) ? {
1588
1588
walk ( & path) ?;
1589
- stash . insert ( path) ;
1589
+ seen . insert ( path) ;
1590
1590
}
1591
1591
}
1592
1592
1593
1593
// Once we're done, also be sure to walk the home directory even if it's not
1594
1594
// in our history to be sure we pick up that standard location for
1595
1595
// information.
1596
1596
if let Some ( path) = self . get_file_path ( home, "config" , true ) ? {
1597
- if !stash . contains ( & path) {
1597
+ if !seen . contains ( & path) {
1598
1598
walk ( & path) ?;
1599
1599
}
1600
1600
}
You can’t perform that action at this time.
0 commit comments