File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,10 +88,7 @@ impl State {
8888 } ;
8989
9090 let mut current_focus = root_subtree. focus ;
91- loop {
92- let Some ( node_state) = self . nodes . get ( & current_focus) else {
93- break ;
94- } ;
91+ while let Some ( node_state) = self . nodes . get ( & current_focus) {
9592 let Some ( subtree_id) = node_state. data . tree_id ( ) else {
9693 break ;
9794 } ;
Original file line number Diff line number Diff line change @@ -1228,11 +1228,9 @@ macro_rules! patterns {
12281228 self . resolve( |node| {
12291229 let wrapper = NodeWrapper ( & node) ;
12301230 match pattern_id {
1231- $( $pattern_id => {
1232- if wrapper. $is_supported( ) {
1233- let intermediate: $provider_interface = self . to_interface( ) ;
1234- return intermediate. cast( ) ;
1235- }
1231+ $( $pattern_id if wrapper. $is_supported( ) => {
1232+ let intermediate: $provider_interface = self . to_interface( ) ;
1233+ return intermediate. cast( ) ;
12361234 } ) *
12371235 _ => ( ) ,
12381236 }
You can’t perform that action at this time.
0 commit comments