File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed
library/core/src/iter/traits Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -2312,9 +2312,9 @@ pub trait Iterator {
23122312 #[ inline]
23132313 #[ unstable( feature = "iter_at_least" , reason = "new API" , issue = "none" ) ]
23142314 fn at_least < F > ( & mut self , n : usize , f : F ) -> bool
2315- where
2316- Self : Sized ,
2317- F : FnMut ( Self :: Item ) -> bool ,
2315+ where
2316+ Self : Sized ,
2317+ F : FnMut ( Self :: Item ) -> bool ,
23182318 {
23192319 #[ inline]
23202320 fn check < T > (
@@ -2324,11 +2324,7 @@ pub trait Iterator {
23242324 move |mut i, x| {
23252325 i += f ( x) as usize ;
23262326
2327- if i < n {
2328- ControlFlow :: Continue ( i)
2329- } else {
2330- ControlFlow :: Break ( i)
2331- }
2327+ if i < n { ControlFlow :: Continue ( i) } else { ControlFlow :: Break ( i) }
23322328 }
23332329 }
23342330
@@ -2381,9 +2377,9 @@ pub trait Iterator {
23812377 #[ inline]
23822378 #[ unstable( feature = "iter_at_most" , reason = "new API" , issue = "none" ) ]
23832379 fn at_most < F > ( & mut self , n : usize , f : F ) -> bool
2384- where
2385- Self : Sized ,
2386- F : FnMut ( Self :: Item ) -> bool ,
2380+ where
2381+ Self : Sized ,
2382+ F : FnMut ( Self :: Item ) -> bool ,
23872383 {
23882384 #[ inline]
23892385 fn check < T > (
@@ -2393,11 +2389,7 @@ pub trait Iterator {
23932389 move |mut i, x| {
23942390 i += f ( x) as usize ;
23952391
2396- if i <= n {
2397- ControlFlow :: Continue ( i)
2398- } else {
2399- ControlFlow :: Break ( i)
2400- }
2392+ if i <= n { ControlFlow :: Continue ( i) } else { ControlFlow :: Break ( i) }
24012393 }
24022394 }
24032395
You can’t perform that action at this time.
0 commit comments