From 2bea289b4a483fb1b8aa62df4e5e3e36aecaeb95 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Mon, 15 May 2023 12:08:16 +0100
Subject: [PATCH] fix: format issue

---
 src/apu.rs | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/apu.rs b/src/apu.rs
index 8b7b7d9c..c1c41c94 100644
--- a/src/apu.rs
+++ b/src/apu.rs
@@ -331,7 +331,13 @@ impl Apu {
     pub fn read(&mut self, addr: u16) -> u8 {
         match addr {
             // 0xFF1A — NR30: Channel 3 DAC enable
-            0xff1a => if self.ch3_dac { 0x80 } else { 0x00 },
+            0xff1a => {
+                if self.ch3_dac {
+                    0x80
+                } else {
+                    0x00
+                }
+            }
 
             // 0xFF25 — NR51: Sound panning
             0xff25 => self.glob_panning,
-- 
GitLab