Skip to content

Commit 79c72f5

Browse files
committed
fixup! WriterPanicked: Use debug_struct
1 parent 5ac431f commit 79c72f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/std/src/io/buffered/bufwriter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ impl fmt::Display for WriterPanicked {
382382
#[unstable(feature = "bufwriter_into_raw_parts", issue = "none")]
383383
impl fmt::Debug for WriterPanicked {
384384
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
385-
fmt.debug_struct("WriterPanicked")
385+
f.debug_struct("WriterPanicked")
386386
.field("buffer", &format_args!("{}/{}", self.buf.len(), self.buf.capacity()))
387387
.finish()
388388
}

0 commit comments

Comments
 (0)