From 70f9c89c64caa9f3e06c3c18a35157ce89f16162 Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Sun, 25 Feb 2024 05:15:35 +0100 Subject: chore: make clippy happy --- src/arch/x86_64/interrupt/pic_8259.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/x86_64/interrupt/pic_8259.rs') diff --git a/src/arch/x86_64/interrupt/pic_8259.rs b/src/arch/x86_64/interrupt/pic_8259.rs index 43a102c..894697c 100644 --- a/src/arch/x86_64/interrupt/pic_8259.rs +++ b/src/arch/x86_64/interrupt/pic_8259.rs @@ -38,9 +38,9 @@ pub fn forbid(interrupt: u8) { pub fn is_masked(interrupt: u8) -> bool { if interrupt < 8 { let val = inb(IMR1); - return val & (interrupt) != 0; + val & (interrupt) != 0 } else { let val = inb(IMR2); - return val & (interrupt - 8) != 0; + val & (interrupt - 8) != 0 } } -- cgit v1.2.3-70-g09d2