From 3584bac0b26749e35d915d25f0878110bd7b5ff6 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 12 Dec 2025 08:50:35 +0100 Subject: [PATCH] nil: cleanup derelict allow(dead_code) annotations Part-of: --- src/nouveau/nil/extent.rs | 1 - src/nouveau/nil/image.rs | 1 - src/nouveau/nil/modifiers.rs | 1 - 3 files changed, 3 deletions(-) diff --git a/src/nouveau/nil/extent.rs b/src/nouveau/nil/extent.rs index 2e7c1b77f8a..d498c2ab846 100644 --- a/src/nouveau/nil/extent.rs +++ b/src/nouveau/nil/extent.rs @@ -219,7 +219,6 @@ impl Offset4D { } } - #[allow(dead_code)] pub fn is_aligned_to(&self, alignment: Extent4D) -> bool { (self.x % alignment.width) == 0 && (self.y % alignment.height) == 0 diff --git a/src/nouveau/nil/image.rs b/src/nouveau/nil/image.rs index d577c297b77..52acda8a633 100644 --- a/src/nouveau/nil/image.rs +++ b/src/nouveau/nil/image.rs @@ -991,7 +991,6 @@ pub enum ViewType { } /// An enum describing how an image view will be accessed by the shader. -#[allow(dead_code)] #[derive(Clone, Debug, Copy, PartialEq)] #[repr(u8)] pub enum ViewAccess { diff --git a/src/nouveau/nil/modifiers.rs b/src/nouveau/nil/modifiers.rs index 6c838002729..88556a7e3e8 100644 --- a/src/nouveau/nil/modifiers.rs +++ b/src/nouveau/nil/modifiers.rs @@ -118,7 +118,6 @@ impl GOBType { } #[repr(u8)] -#[allow(dead_code)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum CompressionType { None = 0,