@@ -95,10 +95,10 @@ where
9595 let ( rhs_idx, rhs_path, rhs_entry) = rhs;
9696 match lhs_path. cmp ( rhs_path) {
9797 Ordering :: Less => match emit_deletion ( lhs, & mut cb, tracker. as_mut ( ) ) ? {
98- Action :: Continue => {
98+ std :: ops :: ControlFlow :: Continue ( ( ) ) => {
9999 lhs_storage = lhs_iter. next ( ) ;
100100 }
101- Action :: Cancel => return Ok ( None ) ,
101+ std :: ops :: ControlFlow :: Break ( ( ) ) => return Ok ( None ) ,
102102 } ,
103103 Ordering :: Equal => {
104104 if ignore_unmerged_and_intent_to_add ( rhs) {
@@ -123,31 +123,31 @@ where
123123 } ;
124124 if let Some ( change) = change {
125125 match cb ( change) . map_err ( |err| Error :: Callback ( err. into ( ) ) ) ? {
126- Action :: Continue => { }
127- Action :: Cancel => return Ok ( None ) ,
126+ std :: ops :: ControlFlow :: Continue ( ( ) ) => { }
127+ std :: ops :: ControlFlow :: Break ( ( ) ) => return Ok ( None ) ,
128128 }
129129 }
130130 }
131131 lhs_storage = lhs_iter. next ( ) ;
132132 rhs_storage = rhs_iter. next ( ) ;
133133 }
134134 Ordering :: Greater => match emit_addition ( rhs, & mut cb, tracker. as_mut ( ) ) ? {
135- Action :: Continue => {
135+ std :: ops :: ControlFlow :: Continue ( ( ) ) => {
136136 rhs_storage = rhs_iter. next ( ) ;
137137 }
138- Action :: Cancel => return Ok ( None ) ,
138+ std :: ops :: ControlFlow :: Break ( ( ) ) => return Ok ( None ) ,
139139 } ,
140140 }
141141 }
142142 ( Some ( lhs) , None ) => match emit_deletion ( lhs, & mut cb, tracker. as_mut ( ) ) ? {
143- Action :: Cancel => return Ok ( None ) ,
144- Action :: Continue => {
143+ std :: ops :: ControlFlow :: Break ( ( ) ) => return Ok ( None ) ,
144+ std :: ops :: ControlFlow :: Continue ( ( ) ) => {
145145 lhs_storage = lhs_iter. next ( ) ;
146146 }
147147 } ,
148148 ( None , Some ( rhs) ) => match emit_addition ( rhs, & mut cb, tracker. as_mut ( ) ) ? {
149- Action :: Cancel => return Ok ( None ) ,
150- Action :: Continue => {
149+ std :: ops :: ControlFlow :: Break ( ( ) ) => return Ok ( None ) ,
150+ std :: ops :: ControlFlow :: Continue ( ( ) ) => {
151151 rhs_storage = rhs_iter. next ( ) ;
152152 }
153153 } ,
@@ -180,11 +180,11 @@ where
180180 dst. change
181181 } ;
182182 match cb ( change) {
183- Ok ( Action :: Continue ) => crate :: tree :: visit :: Action :: Continue ,
184- Ok ( Action :: Cancel ) => crate :: tree :: visit :: Action :: Cancel ,
183+ Ok ( std :: ops :: ControlFlow :: Continue ( ( ) ) ) => std :: ops :: ControlFlow :: Continue ( ( ) ) ,
184+ Ok ( std :: ops :: ControlFlow :: Break ( ( ) ) ) => std :: ops :: ControlFlow :: Break ( ( ) ) ,
185185 Err ( err) => {
186186 cb_err = Some ( Error :: Callback ( err. into ( ) ) ) ;
187- crate :: tree :: visit :: Action :: Cancel
187+ std :: ops :: ControlFlow :: Break ( ( ) )
188188 }
189189 }
190190 } ,
@@ -239,7 +239,7 @@ where
239239 None => change,
240240 Some ( tracker) => match tracker. try_push_change ( change, path) {
241241 Some ( change) => change,
242- None => return Ok ( Action :: Continue ) ,
242+ None => return Ok ( std :: ops :: ControlFlow :: Continue ( ( ) ) ) ,
243243 } ,
244244 } ;
245245
@@ -255,7 +255,7 @@ where
255255 E : Into < Box < dyn std:: error:: Error + Send + Sync > > ,
256256{
257257 if ignore_unmerged_and_intent_to_add ( ( idx, path, entry) ) {
258- return Ok ( Action :: Continue ) ;
258+ return Ok ( std :: ops :: ControlFlow :: Continue ( ( ) ) ) ;
259259 }
260260
261261 let change = ChangeRef :: Addition {
@@ -269,7 +269,7 @@ where
269269 None => change,
270270 Some ( tracker) => match tracker. try_push_change ( change, path) {
271271 Some ( change) => change,
272- None => return Ok ( Action :: Continue ) ,
272+ None => return Ok ( std :: ops :: ControlFlow :: Continue ( ( ) ) ) ,
273273 } ,
274274 } ;
275275
0 commit comments