Skip to content

Commit 7cd1aec

Browse files
Improved debug implementation.
1 parent a56ed6e commit 7cd1aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ impl<A: Array> Extend<A::Item> for SmallVec<A> {
11841184

11851185
impl<A: Array> fmt::Debug for SmallVec<A> where A::Item: fmt::Debug {
11861186
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1187-
write!(f, "{:?}", &**self)
1187+
f.debug_list().entries(self.iter()).finish()
11881188
}
11891189
}
11901190

0 commit comments

Comments
 (0)