diff --git a/Cargo.toml b/Cargo.toml index 76e531d..87411f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,3 +40,6 @@ tar = "0.4.40" [dev-dependencies] tokio-test = "*" + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ["cfg(tarpaulin_include)"] } \ No newline at end of file diff --git a/src/appconfig.rs b/src/appconfig.rs index dcd52b4..0104522 100644 --- a/src/appconfig.rs +++ b/src/appconfig.rs @@ -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") };