From 465f21da46a7194e25894043ca2cca9ba958e11c Mon Sep 17 00:00:00 2001 From: Eskil Queseth Date: Sun, 13 Jun 2021 20:48:54 +0200 Subject: add unreachable_pub lint and fix debug impl --- mumd/src/audio.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mumd/src/audio.rs') diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs index 2e20583..fa22188 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -112,6 +112,16 @@ impl AudioInput { } } +impl Debug for AudioInput { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("AudioInput") + .field("device", &self.device) + .field("channel_receiver", &"receiver") + .finish() + } +} + +#[derive(Debug)] pub struct AudioOutput { device: DefaultAudioOutputDevice, user_volumes: Arc>>, -- cgit v1.2.1