File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -2451,10 +2451,7 @@ pub trait Iterator {
2451
2451
Self :: Item : PartialOrd < I :: Item > ,
2452
2452
Self : Sized ,
2453
2453
{
2454
- match self . partial_cmp ( other) {
2455
- Some ( Ordering :: Less ) => true ,
2456
- _ => false ,
2457
- }
2454
+ self . partial_cmp ( other) == Some ( Ordering :: Less )
2458
2455
}
2459
2456
2460
2457
/// Determines if the elements of this `Iterator` are lexicographically
@@ -2479,10 +2476,7 @@ pub trait Iterator {
2479
2476
Self :: Item : PartialOrd < I :: Item > ,
2480
2477
Self : Sized ,
2481
2478
{
2482
- match self . partial_cmp ( other) {
2483
- Some ( Ordering :: Greater ) => true ,
2484
- _ => false ,
2485
- }
2479
+ self . partial_cmp ( other) == Some ( Ordering :: Greater )
2486
2480
}
2487
2481
2488
2482
/// Determines if the elements of this `Iterator` are lexicographically
You can’t perform that action at this time.
0 commit comments