Skip to content

Commit

Permalink
fix: push message from model to vulninfo severtiy error
Browse files Browse the repository at this point in the history
  • Loading branch information
fan-tastic-z committed Jun 4, 2024
1 parent ae9e2ce commit db0aadf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "watchvuln-rs"
version = "0.1.5"
version = "0.1.6"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
8 changes: 4 additions & 4 deletions src/grab/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ pub struct VulnInfo {
impl From<Model> for VulnInfo {
fn from(v: Model) -> Self {
let severtiy = match v.severtiy.as_str() {
"低危" => Severity::Low,
"中危" => Severity::Medium,
"高危" => Severity::High,
"严重" => Severity::Critical,
"Low" => Severity::Low,
"Medium" => Severity::Medium,
"High" => Severity::High,
"Critical" => Severity::Critical,
_ => Severity::Low,
};

Expand Down

0 comments on commit db0aadf

Please sign in to comment.