From 79c72f57d5538576cac7df13559ee74dd32552da Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 12 Dec 2020 18:39:30 +0000 Subject: [PATCH] fixup! WriterPanicked: Use debug_struct --- library/std/src/io/buffered/bufwriter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/io/buffered/bufwriter.rs b/library/std/src/io/buffered/bufwriter.rs index 4319febbf91..145da471596 100644 --- a/library/std/src/io/buffered/bufwriter.rs +++ b/library/std/src/io/buffered/bufwriter.rs @@ -382,7 +382,7 @@ impl fmt::Display for WriterPanicked { #[unstable(feature = "bufwriter_into_raw_parts", issue = "none")] impl fmt::Debug for WriterPanicked { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - fmt.debug_struct("WriterPanicked") + f.debug_struct("WriterPanicked") .field("buffer", &format_args!("{}/{}", self.buf.len(), self.buf.capacity())) .finish() }