Skip to content

Commit 6732840

Browse files
committed
Show remaining data in string::Drain's Debug impl.
1 parent daa62d9 commit 6732840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2439,7 +2439,7 @@ pub struct Drain<'a> {
24392439
#[stable(feature = "collection_debug", since = "1.17.0")]
24402440
impl fmt::Debug for Drain<'_> {
24412441
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2442-
f.pad("Drain { .. }")
2442+
f.debug_tuple("Drain").field(&self.as_str()).finish()
24432443
}
24442444
}
24452445

0 commit comments

Comments
 (0)