From bee134bc42aa6d4f4c69d09df85ebee910e720c4 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 3 Jul 2019 14:23:09 +0200 Subject: [PATCH] audio: implement proper Debug on AudioFormatInfo --- gstreamer-audio/src/audio_format_info.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gstreamer-audio/src/audio_format_info.rs b/gstreamer-audio/src/audio_format_info.rs index 2ec3526a6..643ee7d55 100644 --- a/gstreamer-audio/src/audio_format_info.rs +++ b/gstreamer-audio/src/audio_format_info.rs @@ -220,7 +220,16 @@ impl Eq for AudioFormatInfo {} impl fmt::Debug for AudioFormatInfo { fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { - f.write_str(self.name()) + f.debug_struct("AudioFormatInfo") + .field("format", &self.format()) + .field("name", &self.name()) + .field("description", &self.description()) + .field("flags", &self.flags()) + .field("endianness", &self.endianness()) + .field("width", &self.width()) + .field("depth", &self.depth()) + .field("silence", &self.silence()) + .finish() } }