diff --git a/dump/src/reader/v3/errors.rs b/dump/src/reader/v3/errors.rs index 40c4d2c8d..6e9da4f41 100644 --- a/dump/src/reader/v3/errors.rs +++ b/dump/src/reader/v3/errors.rs @@ -1,5 +1,6 @@ use serde::{Deserialize, Serialize}; +#[allow(clippy::enum_variant_names)] #[derive(Serialize, Deserialize, Debug, Clone, Copy)] pub enum Code { // index related error diff --git a/dump/src/reader/v4/errors.rs b/dump/src/reader/v4/errors.rs index afa640de4..a2638e86f 100644 --- a/dump/src/reader/v4/errors.rs +++ b/dump/src/reader/v4/errors.rs @@ -95,6 +95,7 @@ impl fmt::Display for ErrorType { } } +#[allow(clippy::enum_variant_names)] #[derive(Serialize, Deserialize, Debug, Clone, Copy)] pub enum Code { // index related error diff --git a/dump/src/reader/v5/errors.rs b/dump/src/reader/v5/errors.rs index f4067d4c6..55e036725 100644 --- a/dump/src/reader/v5/errors.rs +++ b/dump/src/reader/v5/errors.rs @@ -31,6 +31,7 @@ impl ResponseError { } } +#[allow(clippy::enum_variant_names)] #[derive(Deserialize, Debug, Clone, Copy)] #[cfg_attr(test, derive(serde::Serialize))] pub enum Code {