From 673284058b53992cfd66c04b9db8e551a0dc9996 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Wed, 9 Sep 2020 17:40:44 +0200 Subject: [PATCH] Show remaining data in string::Drain's Debug impl. --- library/alloc/src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } }