reformat code
This commit is contained in:
parent
7c566d4294
commit
99fa3fb873
1 changed files with 6 additions and 3 deletions
|
@ -1030,7 +1030,7 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_handle_timers_beep() {
|
fn test_handle_timers_beep() {
|
||||||
struct TestSound {
|
struct TestSound {
|
||||||
did_beep: bool
|
did_beep: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SoundModule for TestSound {
|
impl SoundModule for TestSound {
|
||||||
|
@ -1039,8 +1039,11 @@ mod tests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let mut emulator = Emulator::new(
|
||||||
let mut emulator = Emulator::new(TerminalDisplay::new(), TestSound { did_beep: false }, NoInput);
|
TerminalDisplay::new(),
|
||||||
|
TestSound { did_beep: false },
|
||||||
|
NoInput,
|
||||||
|
);
|
||||||
emulator.sound_timer = 0;
|
emulator.sound_timer = 0;
|
||||||
|
|
||||||
emulator.handle_timers();
|
emulator.handle_timers();
|
||||||
|
|
Loading…
Reference in a new issue