summary refs log tree commit diff
path: root/library/alloc/src/string.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-09-09 17:40:44 +0200
committerMara Bos <m-ou.se@m-ou.se>2020-09-09 17:50:55 +0200
commit673284058b53992cfd66c04b9db8e551a0dc9996 (patch)
tree059a6e5487656d9163b293de35f86a697d12bd83 /library/alloc/src/string.rs
parentdaa62d9081bfeeb0f438f88eb69082c227a5c221 (diff)
downloadrust-673284058b53992cfd66c04b9db8e551a0dc9996.tar.gz
rust-673284058b53992cfd66c04b9db8e551a0dc9996.zip
Show remaining data in string::Drain's Debug impl.
Diffstat (limited to 'library/alloc/src/string.rs')
-rw-r--r--library/alloc/src/string.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index d27dd9c9340..14ffd06e9bd 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -2439,7 +2439,7 @@ pub struct Drain<'a> {
 #[stable(feature = "collection_debug", since = "1.17.0")]
 impl fmt::Debug for Drain<'_> {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        f.pad("Drain { .. }")
+        f.debug_tuple("Drain").field(&self.as_str()).finish()
     }
 }