diff options
| author | Eskil Queseth <eskilq@kth.se> | 2021-06-13 20:48:54 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2021-06-13 20:48:54 +0200 |
| commit | 465f21da46a7194e25894043ca2cca9ba958e11c (patch) | |
| tree | 0a1dd5381263e8e8d6d09f1c0940aeb11f497e49 /mumd/src/audio.rs | |
| parent | 9bc2bdc5dca1399fa75d20a18f1a2dfb8ab4e325 (diff) | |
| download | mum-465f21da46a7194e25894043ca2cca9ba958e11c.tar.gz | |
add unreachable_pub lint and fix debug impl
Diffstat (limited to 'mumd/src/audio.rs')
| -rw-r--r-- | mumd/src/audio.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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<Mutex<HashMap<u32, (f32, bool)>>>, |
