From ccdb0e492193836f75c181bf991bac358500d7fc Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Fri, 18 Mar 2022 22:01:02 +0000 Subject: [PATCH] Add an allow for the clippy bug --- agb/src/display/palette16.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/agb/src/display/palette16.rs b/agb/src/display/palette16.rs index 9dc79687..6a07ac86 100644 --- a/agb/src/display/palette16.rs +++ b/agb/src/display/palette16.rs @@ -9,6 +9,7 @@ impl Palette16 { Palette16 { colours } } + #[allow(clippy::only_used_in_recursion)] pub fn update_colour(&mut self, index: usize, colour: u16) { self.colours[index] = colour; }