@@ -2991,7 +2991,8 @@ impl<'a, T: 'a, P> GroupBy<'a, T, P> {
2991
2991
2992
2992
#[ unstable( feature = "slice_group_by" , issue = "none" ) ]
2993
2993
impl < ' a , T : ' a , P > Iterator for GroupBy < ' a , T , P >
2994
- where P : FnMut ( & T , & T ) -> bool ,
2994
+ where
2995
+ P : FnMut ( & T , & T ) -> bool ,
2995
2996
{
2996
2997
type Item = & ' a [ T ] ;
2997
2998
@@ -3013,11 +3014,7 @@ where P: FnMut(&T, &T) -> bool,
3013
3014
3014
3015
#[ inline]
3015
3016
fn size_hint ( & self ) -> ( usize , Option < usize > ) {
3016
- if self . slice . is_empty ( ) {
3017
- ( 0 , Some ( 0 ) )
3018
- } else {
3019
- ( 1 , Some ( self . slice . len ( ) ) )
3020
- }
3017
+ if self . slice . is_empty ( ) { ( 0 , Some ( 0 ) ) } else { ( 1 , Some ( self . slice . len ( ) ) ) }
3021
3018
}
3022
3019
3023
3020
#[ inline]
@@ -3028,7 +3025,8 @@ where P: FnMut(&T, &T) -> bool,
3028
3025
3029
3026
#[ unstable( feature = "slice_group_by" , issue = "none" ) ]
3030
3027
impl < ' a , T : ' a , P > DoubleEndedIterator for GroupBy < ' a , T , P >
3031
- where P : FnMut ( & T , & T ) -> bool ,
3028
+ where
3029
+ P : FnMut ( & T , & T ) -> bool ,
3032
3030
{
3033
3031
#[ inline]
3034
3032
fn next_back ( & mut self ) -> Option < Self :: Item > {
@@ -3048,9 +3046,7 @@ where P: FnMut(&T, &T) -> bool,
3048
3046
}
3049
3047
3050
3048
#[ unstable( feature = "slice_group_by" , issue = "none" ) ]
3051
- impl < ' a , T : ' a , P > FusedIterator for GroupBy < ' a , T , P >
3052
- where P : FnMut ( & T , & T ) -> bool ,
3053
- { }
3049
+ impl < ' a , T : ' a , P > FusedIterator for GroupBy < ' a , T , P > where P : FnMut ( & T , & T ) -> bool { }
3054
3050
3055
3051
/// An iterator over slice in (non-overlapping) mutable chunks separated
3056
3052
/// by a predicate.
@@ -3075,7 +3071,8 @@ impl<'a, T: 'a, P> GroupByMut<'a, T, P> {
3075
3071
3076
3072
#[ unstable( feature = "slice_group_by" , issue = "none" ) ]
3077
3073
impl < ' a , T : ' a , P > Iterator for GroupByMut < ' a , T , P >
3078
- where P : FnMut ( & T , & T ) -> bool ,
3074
+ where
3075
+ P : FnMut ( & T , & T ) -> bool ,
3079
3076
{
3080
3077
type Item = & ' a mut [ T ] ;
3081
3078
@@ -3098,11 +3095,7 @@ where P: FnMut(&T, &T) -> bool,
3098
3095
3099
3096
#[ inline]
3100
3097
fn size_hint ( & self ) -> ( usize , Option < usize > ) {
3101
- if self . slice . is_empty ( ) {
3102
- ( 0 , Some ( 0 ) )
3103
- } else {
3104
- ( 1 , Some ( self . slice . len ( ) ) )
3105
- }
3098
+ if self . slice . is_empty ( ) { ( 0 , Some ( 0 ) ) } else { ( 1 , Some ( self . slice . len ( ) ) ) }
3106
3099
}
3107
3100
3108
3101
#[ inline]
@@ -3113,7 +3106,8 @@ where P: FnMut(&T, &T) -> bool,
3113
3106
3114
3107
#[ unstable( feature = "slice_group_by" , issue = "none" ) ]
3115
3108
impl < ' a , T : ' a , P > DoubleEndedIterator for GroupByMut < ' a , T , P >
3116
- where P : FnMut ( & T , & T ) -> bool ,
3109
+ where
3110
+ P : FnMut ( & T , & T ) -> bool ,
3117
3111
{
3118
3112
#[ inline]
3119
3113
fn next_back ( & mut self ) -> Option < Self :: Item > {
@@ -3132,3 +3126,6 @@ where P: FnMut(&T, &T) -> bool,
3132
3126
}
3133
3127
}
3134
3128
}
3129
+
3130
+ #[ unstable( feature = "slice_group_by" , issue = "none" ) ]
3131
+ impl < ' a , T : ' a , P > FusedIterator for GroupByMut < ' a , T , P > where P : FnMut ( & T , & T ) -> bool { }
0 commit comments