From 11f71371e2f263f8e6ef1c2a4a7773e7d24bd69f Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Sun, 6 Aug 2023 20:46:58 +0100 Subject: [PATCH] Be less happy with what we allow --- agb/src/display/mod.rs | 1 - agb/src/display/object/unmanaged/attributes.rs | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/agb/src/display/mod.rs b/agb/src/display/mod.rs index c61ef432..516f39f3 100644 --- a/agb/src/display/mod.rs +++ b/agb/src/display/mod.rs @@ -151,7 +151,6 @@ unsafe fn set_graphics_settings(settings: GraphicsSettings) { DISPLAY_CONTROL.set(s); } -#[allow(non_snake_case)] /// Waits until vblank using a busy wait loop, this should almost never be used. /// I only say almost because whilst I don't believe there to be a reason to use /// this I can't rule it out. diff --git a/agb/src/display/object/unmanaged/attributes.rs b/agb/src/display/object/unmanaged/attributes.rs index 3437cf16..498bfb68 100644 --- a/agb/src/display/object/unmanaged/attributes.rs +++ b/agb/src/display/object/unmanaged/attributes.rs @@ -161,10 +161,7 @@ enum ColourMode { Eight, } -// this mod is not public, so the internal parts don't need documenting. -#[allow(dead_code)] -#[allow(clippy::all)] -#[allow(clippy::map_unwrap_or)] +#[allow(clippy::module_inception)] mod attributes { use crate::display::Priority;