Remove module-wide dead_code allows, annotate individual items instead
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#![allow(dead_code)]
|
||||
|
||||
use super::database::{CveSummary, Database};
|
||||
use crate::config::VERSION;
|
||||
|
||||
@@ -12,6 +10,7 @@ pub enum ReportFormat {
|
||||
}
|
||||
|
||||
impl ReportFormat {
|
||||
#[allow(dead_code)]
|
||||
pub fn from_str(s: &str) -> Option<Self> {
|
||||
match s.to_lowercase().as_str() {
|
||||
"json" => Some(Self::Json),
|
||||
@@ -21,6 +20,7 @@ impl ReportFormat {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn extension(&self) -> &'static str {
|
||||
match self {
|
||||
Self::Json => "json",
|
||||
|
||||
Reference in New Issue
Block a user