File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1988,11 +1988,11 @@ pub struct Iter<'a, T: 'a> {
1988
1988
#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
1989
1989
impl < ' a , T : ' a + fmt:: Debug > fmt:: Debug for Iter < ' a , T > {
1990
1990
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1991
+ let ( front, back) = RingSlices :: ring_slices ( self . ring , self . head , self . tail ) ;
1991
1992
f. debug_tuple ( "Iter" )
1992
- . field ( & self . ring )
1993
- . field ( & self . tail )
1994
- . field ( & self . head )
1995
- . finish ( )
1993
+ . field ( & front)
1994
+ . field ( & back)
1995
+ . finish ( )
1996
1996
}
1997
1997
}
1998
1998
@@ -2085,11 +2085,11 @@ pub struct IterMut<'a, T: 'a> {
2085
2085
#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
2086
2086
impl < ' a , T : ' a + fmt:: Debug > fmt:: Debug for IterMut < ' a , T > {
2087
2087
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2088
+ let ( front, back) = RingSlices :: ring_slices ( & * self . ring , self . head , self . tail ) ;
2088
2089
f. debug_tuple ( "IterMut" )
2089
- . field ( & self . ring )
2090
- . field ( & self . tail )
2091
- . field ( & self . head )
2092
- . finish ( )
2090
+ . field ( & front)
2091
+ . field ( & back)
2092
+ . finish ( )
2093
2093
}
2094
2094
}
2095
2095
You can’t perform that action at this time.
0 commit comments