Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippyの警告に対処 #50

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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