Skip to content

Commit

Permalink
Merge pull request #173 from Achiefs/172-fix-code-scan
Browse files Browse the repository at this point in the history
Fix code scanning issues
  • Loading branch information
okynos authored Oct 12, 2024
2 parents 4c41265 + 9e1794d commit a3b9f4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ tar = "0.4.40"

[dev-dependencies]
tokio-test = "*"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(tarpaulin_include)"] }
5 changes: 1 addition & 4 deletions src/appconfig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ impl AppConfig {

// Manage value on events->watcher value
let events_watcher = match yaml[0]["events"]["watcher"].as_str() {
Some(value) => match value {
"poll"|"P"|"POLL"|"Poll" => String::from("Poll"),
_ => String::from("Recommended")
},
Some("poll"|"P"|"POLL"|"Poll") => String::from("Poll"),
_ => String::from("Recommended")
};

Expand Down

0 comments on commit a3b9f4a

Please sign in to comment.