Skip to content

Commit

Permalink
ci: ci code lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
fan-tastic-z committed Jun 15, 2024
1 parent 8c636b8 commit 52ebee2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
2 changes: 0 additions & 2 deletions src/grab/kev.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::usize;

use async_trait::async_trait;
use chrono::{DateTime, FixedOffset};
use reqwest::header::{self};
Expand Down
20 changes: 4 additions & 16 deletions src/grab/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,13 @@ impl From<Model> for VulnInfo {
_ => Severity::Low,
};

let references = match v.references {
Some(references) => references,
None => Vec::new(),
};
let references = v.references.unwrap_or_default();

let tags = match v.tags {
Some(tags) => tags,
None => Vec::new(),
};
let tags = v.tags.unwrap_or_default();

let reasons = match v.reasons {
Some(reasons) => reasons,
None => Vec::new(),
};
let reasons = v.reasons.unwrap_or_default();

let github_search = match v.github_search {
Some(github_search) => github_search,
None => Vec::new(),
};
let github_search = v.github_search.unwrap_or_default();

VulnInfo {
unique_key: v.key,
Expand Down

0 comments on commit 52ebee2

Please sign in to comment.