From 1452f6f51188f9c19cfe5dd1392c6bae6c4c56a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Thu, 18 May 2023 20:55:37 +0100 Subject: [PATCH] fix: clippy issues --- src/apu.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apu.rs b/src/apu.rs index 427e0609..3fda82ac 100644 --- a/src/apu.rs +++ b/src/apu.rs @@ -599,7 +599,7 @@ impl Apu { } pub fn ch1_enabled(&mut self) -> bool { - return self.ch1_out_enabled; + self.ch1_out_enabled } pub fn set_ch1_enabled(&mut self, enabled: bool) { @@ -607,7 +607,7 @@ impl Apu { } pub fn ch2_enabled(&mut self) -> bool { - return self.ch2_out_enabled; + self.ch2_out_enabled } pub fn set_ch2_enabled(&mut self, enabled: bool) { @@ -615,7 +615,7 @@ impl Apu { } pub fn ch3_enabled(&mut self) -> bool { - return self.ch3_out_enabled; + self.ch3_out_enabled } pub fn set_ch3_enabled(&mut self, enabled: bool) { @@ -623,7 +623,7 @@ impl Apu { } pub fn ch4_enabled(&mut self) -> bool { - return self.ch4_out_enabled; + self.ch4_out_enabled } pub fn set_ch4_enabled(&mut self, enabled: bool) { -- GitLab