Show remaining data in string::Drain's Debug impl.

This commit is contained in:
Mara Bos 2020-09-09 17:40:44 +02:00
parent daa62d9081
commit 673284058b

View File

@ -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()
}
}