From 70ba718ce97e25bba8ce28976a958b77813cc730 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 27 Jan 2022 16:08:53 +0100 Subject: [PATCH] node config: avoid "allow" annotation We rename those anyway for serialization so we do not need to bother with spelling them in an non-idiomatic way just because i18n has it like that. Signed-off-by: Thomas Lamprecht --- src/config/node.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/config/node.rs b/src/config/node.rs index a26f5974..a9b1e0d0 100644 --- a/src/config/node.rs +++ b/src/config/node.rs @@ -61,7 +61,6 @@ pub struct AcmeConfig { /// pt_BR, zh_CN, and zh_TW use the same case in the translation files. // TODO: auto-generate from available translations #[api] -#[allow(non_camel_case_types)] #[derive(Serialize, Deserialize)] #[serde(rename_all="lowercase")] pub enum Translation { @@ -103,7 +102,7 @@ pub enum Translation { Pl, /// Portuguese (Brazil) #[serde(rename="pt_BR")] - Pt_Br, + PtBr, /// Russian Ru, /// Slovenian @@ -114,10 +113,10 @@ pub enum Translation { Tr, /// Chinese (simplified) #[serde(rename="zh_CN")] - Zh_Cn, + ZhCn, /// Chinese (traditional) #[serde(rename="zh_TW")] - Zh_Tw, + ZhTw, } #[api(