File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1969,6 +1969,23 @@ impl<T> ExactSizeIterator for Iter<'_, T> {
1969
1969
1970
1970
impl < T > FusedIterator for Iter < ' _ , T > { }
1971
1971
1972
+ // FIXME(#26925) Remove in favor of `#[derive(Clone)]`
1973
+ impl < ' a , T > Clone for Iter < ' a , T > {
1974
+ #[ cfg_attr( feature = "inline-more" , inline) ]
1975
+ fn clone ( & self ) -> Iter < ' a , T > {
1976
+ Iter {
1977
+ inner : self . inner . clone ( ) ,
1978
+ marker : PhantomData ,
1979
+ }
1980
+ }
1981
+ }
1982
+
1983
+ impl < T : fmt:: Debug > fmt:: Debug for Iter < ' _ , T > {
1984
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1985
+ f. debug_list ( ) . entries ( self . clone ( ) ) . finish ( )
1986
+ }
1987
+ }
1988
+
1972
1989
/// A mutable iterator over the entries of a `HashTable` in arbitrary order.
1973
1990
/// The iterator element type is `&'a mut T`.
1974
1991
///
You can’t perform that action at this time.
0 commit comments