From fc88c72a261a2eadaa37f78eef8ef183ab3600b4 Mon Sep 17 00:00:00 2001 From: Waffle Date: Sat, 6 Feb 2021 19:25:36 +0300 Subject: [PATCH] Suppress clippy::upper_case_acronyms for Currency and CountryCode --- src/types/non_telegram_types/country_code.rs | 1 + src/types/non_telegram_types/currency.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/types/non_telegram_types/country_code.rs b/src/types/non_telegram_types/country_code.rs index ddb4154e..459e7f35 100644 --- a/src/types/non_telegram_types/country_code.rs +++ b/src/types/non_telegram_types/country_code.rs @@ -1,6 +1,7 @@ use serde::{Deserialize, Serialize}; /// ISO 3166-1 alpha-2 language code. +#[allow(clippy::upper_case_acronyms)] #[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] pub enum CountryCode { /// Andorra diff --git a/src/types/non_telegram_types/currency.rs b/src/types/non_telegram_types/currency.rs index dcdec729..a252b48b 100644 --- a/src/types/non_telegram_types/currency.rs +++ b/src/types/non_telegram_types/currency.rs @@ -1,6 +1,7 @@ use serde::{Deserialize, Serialize}; /// ISO 4217 currency. +#[allow(clippy::upper_case_acronyms)] #[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] pub enum Currency { /// United Arab Emirates dirham