Remove module-wide dead_code allows, annotate individual items instead

This commit is contained in:
2026-02-27 21:05:56 +02:00
parent 6eb50998fa
commit bfd91104f7
4 changed files with 9 additions and 9 deletions

View File

@@ -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",