From d997ea1f01a236178bc92b98d9c72b9ce747f3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Tue, 16 Jan 2024 17:04:01 +0100 Subject: [PATCH] Make Clippy happy --- dump/src/reader/v3/errors.rs | 1 + dump/src/reader/v4/errors.rs | 1 + dump/src/reader/v5/errors.rs | 1 + 3 files changed, 3 insertions(+) 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 {