Skip to content

Commit

Permalink
style: update some output style
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed Dec 24, 2022
1 parent 655bb59 commit dfc0543
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/cli/src/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ struct MatchJSON<'a> {
#[serde(skip_serializing_if = "Option::is_none")]
replacement: Option<Cow<'a, str>>,
language: SupportLang,
#[serde(skip_serializing_if = "Option::is_none")]
meta_variables: Option<MetaVariables<'a>>,
}

Expand Down Expand Up @@ -418,6 +419,7 @@ struct RuleMatchJSON<'a> {
rule_id: &'a str,
severity: Severity,
message: String,
#[serde(skip_serializing_if = "Option::is_none")]
labels: Option<Vec<MatchNode<'a>>>,
}
impl<'a> RuleMatchJSON<'a> {
Expand Down

0 comments on commit dfc0543

Please sign in to comment.