File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 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> {
19881988#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
19891989impl < ' a , T : ' a + fmt:: Debug > fmt:: Debug for Iter < ' a , T > {
19901990 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1991+ let ( front, back) = RingSlices :: ring_slices ( self . ring , self . head , self . tail ) ;
19911992 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 ( )
19961996 }
19971997}
19981998
@@ -2085,11 +2085,11 @@ pub struct IterMut<'a, T: 'a> {
20852085#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
20862086impl < ' a , T : ' a + fmt:: Debug > fmt:: Debug for IterMut < ' a , T > {
20872087 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2088+ let ( front, back) = RingSlices :: ring_slices ( & * self . ring , self . head , self . tail ) ;
20882089 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 ( )
20932093 }
20942094}
20952095
You can’t perform that action at this time.
0 commit comments