mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
fixup! WriterPanicked: Use debug_struct
This commit is contained in:
parent
5ac431fb08
commit
79c72f57d5
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user