From a850cdcb7ec82cc5eaec76ee90b6ee1794a6da9b Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 17 Apr 2017 18:06:43 +0200 Subject: Fix debug infinite loop --- src/libcollections/enum_set.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libcollections/enum_set.rs') diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs index ebee75d1a1a..aaee567bf1d 100644 --- a/src/libcollections/enum_set.rs +++ b/src/libcollections/enum_set.rs @@ -225,7 +225,8 @@ pub struct Iter { impl fmt::Debug for Iter { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.debug_tuple("Iter") - .field(&self.clone()) + .field(&self.index) + .field(&self.bits) .finish() } } -- cgit 1.4.1-3-g733a5