Skip to content

Commit e2074c6

Browse files
committed
impl Debug for OutputStream
1 parent 897f55e commit e2074c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/stream.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ impl Drop for OutputStream {
7878
}
7979
}
8080

81+
impl fmt::Debug for OutputStream {
82+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
83+
f.debug_struct("OutputStream")
84+
.field("config", &self.config)
85+
.finish_non_exhaustive()
86+
}
87+
}
88+
8189
/// Describes the output stream's configuration
8290
#[derive(Copy, Clone, Debug)]
8391
pub struct OutputStreamConfig {

0 commit comments

Comments
 (0)