File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -745,25 +745,24 @@ impl GlobalState {
745
745
let workspace_ids =
746
746
this. workspaces . iter ( ) . enumerate ( ) . filter ( |( _, ws) | match ws {
747
747
project_model:: ProjectWorkspace :: Cargo { cargo, .. } => {
748
- cargo. packages ( ) . filter ( |& pkg| cargo[ pkg] . is_member ) . any (
749
- |pkg| {
750
- cargo[ pkg] . targets . iter ( ) . any ( |& it| {
751
- paths. contains ( & cargo[ it] . root . as_path ( ) )
752
- } )
753
- } ,
754
- )
748
+ cargo. packages ( ) . any ( |pkg| {
749
+ cargo[ pkg]
750
+ . targets
751
+ . iter ( )
752
+ . any ( |& it| paths. contains ( & cargo[ it] . root . as_path ( ) ) )
753
+ } )
755
754
}
756
755
project_model:: ProjectWorkspace :: Json { project, .. } => project
757
756
. crates ( )
758
757
. any ( |( c, _) | crate_ids. iter ( ) . any ( |& crate_id| crate_id == c) ) ,
759
758
project_model:: ProjectWorkspace :: DetachedFiles { .. } => false ,
760
759
} ) ;
761
- ' workspace : for ( id , _ ) in workspace_ids {
762
- for flycheck in & this . flycheck {
760
+ for flycheck in & this . flycheck {
761
+ for ( id , _ ) in workspace_ids . clone ( ) {
763
762
if id == flycheck. id ( ) {
764
763
updated = true ;
765
764
flycheck. update ( ) ;
766
- continue ' workspace ;
765
+ continue ;
767
766
}
768
767
}
769
768
}
You can’t perform that action at this time.
0 commit comments