diff options
Diffstat (limited to 'src/libcollections/string.rs')
| -rw-r--r-- | src/libcollections/string.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 9a985061ebb..4c82e2e2e7e 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -1990,6 +1990,13 @@ pub struct Drain<'a> { iter: Chars<'a>, } +#[stable(feature = "collection_debug", since = "1.17.0")] +impl<'a> fmt::Debug for Drain<'a> { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.pad("Drain { .. }") + } +} + #[stable(feature = "drain", since = "1.6.0")] unsafe impl<'a> Sync for Drain<'a> {} #[stable(feature = "drain", since = "1.6.0")] |
