From f269f0858aca286a6c794dd8b51a8aff0f13aac4 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Kazuhiro Date: Tue, 13 Feb 2024 10:40:39 +0900 Subject: [PATCH] Calm clippy --- tlmcmddb-csv/src/tlm/body.rs | 6 ------ tlmcmddb/src/tlm.rs | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tlmcmddb-csv/src/tlm/body.rs b/tlmcmddb-csv/src/tlm/body.rs index 8e13e6a..f4ea223 100644 --- a/tlmcmddb-csv/src/tlm/body.rs +++ b/tlmcmddb-csv/src/tlm/body.rs @@ -26,16 +26,10 @@ mod header { pub const DESCRIPTION: &str = "Description"; pub const NOTE: &str = "Note"; pub const NAME: &str = "Name"; - pub const VAR_TYPE: &str = "Var.%%##Type"; pub const VARIABLE_OR_FUNCTION_NAME: &str = "Variable or Function Name"; - pub const EXT_TYPE: &str = "Ext.%%##Type"; pub const POS_DESIGNATOR: &str = "Pos. Desiginator"; - pub const CONV_TYPE: &str = "Conv.%%##Type"; pub const POLY: &str = "Poly (Σa_i * x^i)"; pub const STATUS: &str = "Status"; - pub const OCTET_POS: &str = "Octet%%##Pos."; - pub const BIT_POS: &str = "bit%%##Pos."; - pub const BIT_LEN: &str = "bit%%##Len."; pub const A0: &str = "a0"; pub const A1: &str = "a1"; pub const A2: &str = "a2"; diff --git a/tlmcmddb/src/tlm.rs b/tlmcmddb/src/tlm.rs index 43edc41..2f42586 100644 --- a/tlmcmddb/src/tlm.rs +++ b/tlmcmddb/src/tlm.rs @@ -52,6 +52,8 @@ pub struct FieldGroup { /// [FieldGroup] 内のエントリ #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(rename_all = "SCREAMING_SNAKE_CASE", tag = "type")] +// コメント行はそれほど多くないはずなので large_enum_variantは許容する +#[allow(clippy::large_enum_variant)] pub enum SubEntry { Field(Field), Comment(Comment),