From a4ed1b854fd23f275377e5fbc0803c2a41df1272 Mon Sep 17 00:00:00 2001 From: Wim Looman Date: Fri, 24 Jan 2020 14:09:20 +0100 Subject: [PATCH] impl Debug for IntoIter --- lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib.rs b/lib.rs index 83fcf94..f877f69 100644 --- a/lib.rs +++ b/lib.rs @@ -1513,6 +1513,15 @@ pub struct IntoIter { end: usize, } +impl fmt::Debug for IntoIter +where + A::Item: fmt::Debug, +{ + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_tuple("IntoIter").field(&self.as_slice()).finish() + } +} + impl Clone for IntoIter where A::Item: Clone,