File tree 1 file changed +8
-16
lines changed
library/core/src/iter/traits
1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -2312,9 +2312,9 @@ pub trait Iterator {
2312
2312
#[ inline]
2313
2313
#[ unstable( feature = "iter_at_least" , reason = "new API" , issue = "none" ) ]
2314
2314
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 ,
2318
2318
{
2319
2319
#[ inline]
2320
2320
fn check < T > (
@@ -2324,11 +2324,7 @@ pub trait Iterator {
2324
2324
move |mut i, x| {
2325
2325
i += f ( x) as usize ;
2326
2326
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) }
2332
2328
}
2333
2329
}
2334
2330
@@ -2381,9 +2377,9 @@ pub trait Iterator {
2381
2377
#[ inline]
2382
2378
#[ unstable( feature = "iter_at_most" , reason = "new API" , issue = "none" ) ]
2383
2379
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 ,
2387
2383
{
2388
2384
#[ inline]
2389
2385
fn check < T > (
@@ -2393,11 +2389,7 @@ pub trait Iterator {
2393
2389
move |mut i, x| {
2394
2390
i += f ( x) as usize ;
2395
2391
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) }
2401
2393
}
2402
2394
}
2403
2395
You can’t perform that action at this time.
0 commit comments