diff options
| author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-12-12 18:39:30 +0000 |
|---|---|---|
| committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-12-12 18:39:30 +0000 |
| commit | 79c72f57d5538576cac7df13559ee74dd32552da (patch) | |
| tree | 1817d9d0bcbd2661e01d5ec79622998f1f518f3e | |
| parent | 5ac431fb084e32b8ea86b800c98738ce49ddab37 (diff) | |
| download | rust-79c72f57d5538576cac7df13559ee74dd32552da.tar.gz rust-79c72f57d5538576cac7df13559ee74dd32552da.zip | |
fixup! WriterPanicked: Use debug_struct
| -rw-r--r-- | library/std/src/io/buffered/bufwriter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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() } |
