Skip to content

Commit

Permalink
Allow unused Violation field rule
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd committed Apr 27, 2022
1 parent ffd6134 commit 961e3c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/classifier/violation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::error::Error as StdError;

#[derive(Debug, Clone)]
pub struct Violation {
#[allow(unused)]
rule: Option<Rule>,
name: String,
severity: Severity,
Expand Down

0 comments on commit 961e3c0

Please sign in to comment.