From 78cf275dad3f8db5bc28394298e5eae3d4b61ff0 Mon Sep 17 00:00:00 2001 From: Austin Gill Date: Sat, 27 Jan 2024 09:53:03 -0600 Subject: [PATCH] clippy: Suppress enum-variant-names for Object enum This was a new lint added since the Object enum was first merged. warning: variant name starts with the enum's name --> src/object_pool/object.rs:44:5 | 44 | ObjectPointer(ObjectPointer), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names --- src/object_pool/object.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/object_pool/object.rs b/src/object_pool/object.rs index b7dc0a2..6e74fe2 100644 --- a/src/object_pool/object.rs +++ b/src/object_pool/object.rs @@ -13,6 +13,7 @@ use crate::object_pool::object_id::ObjectId; use crate::object_pool::{Colour, ObjectType}; #[derive(Debug)] +#[allow(clippy::enum_variant_names)] pub enum Object { WorkingSet(WorkingSet), DataMask(DataMask),