Skip to content

Commit

Permalink
clippy: Suppress enum-variant-names for Object enum
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Notgnoshi committed Jan 27, 2024
1 parent e33b174 commit 78cf275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/object_pool/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 78cf275

Please sign in to comment.