From cc0cb0dd8af5b80d70e2b9743760cc8c076e359a Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Thu, 15 Jul 2021 22:58:23 -0500 Subject: [PATCH] chore(apu): satisfy clippy --- src/apu/gen.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apu/gen.rs b/src/apu/gen.rs index 306ecac..4db82b1 100644 --- a/src/apu/gen.rs +++ b/src/apu/gen.rs @@ -6,7 +6,7 @@ use std::collections::VecDeque; pub struct AudioMPSC; impl AudioMPSC { - pub fn new() -> (AudioSender, AudioReceiver) { + pub fn init() -> (AudioSender, AudioReceiver) { // TODO: Can we provide an upper limit for this? // The larger this channel is, the more lag there is between the Audio and // Emulator diff --git a/src/main.rs b/src/main.rs index adc2fb4..1a0b9b5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -66,7 +66,7 @@ fn main() -> Result<()> { (pixels, egui) }; - let (send, recv) = AudioMPSC::new(); + let (send, recv) = AudioMPSC::init(); game_boy.set_audio_src(send); // Initialize Audio