refactor: remove manual Debug impl

Derive the debug impl so it prints all the fields (specifically the
"number of sequencers configured" is pretty helpful in a test).

Manual impls drift over time and are more effort than the derive!
pull/24376/head
Dom Dwyer 2022-04-05 11:16:50 +01:00
parent 891d2e1368
commit 506cdebf38
1 changed files with 1 additions and 6 deletions

View File

@ -347,6 +347,7 @@ impl WriteBufferWriting for MockBufferForWritingThatAlwaysErrors {
}
}
#[derive(Debug)]
pub struct MockBufferForReading {
shared_state: MockBufferSharedState,
n_sequencers: u32,
@ -377,12 +378,6 @@ impl MockBufferForReading {
}
}
impl std::fmt::Debug for MockBufferForReading {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("MockBufferForReading").finish()
}
}
/// Sequencer-specific playback state
#[derive(Debug)]
pub struct MockBufferStreamHandler {