Skip to content

Commit

Permalink
Merge pull request #50 from arkedge/fix-clippy-warnings
Browse files Browse the repository at this point in the history
Clippyの警告に対処
  • Loading branch information
kobkaz authored Feb 21, 2024
2 parents ab4e919 + f269f08 commit cb05779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tlmcmddb-csv/src/tlm/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 2 additions & 0 deletions tlmcmddb/src/tlm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit cb05779

Please sign in to comment.