diff --git a/webhook-listen/src/main.rs b/webhook-listen/src/main.rs index 1676f45cd1e72e721c344a32723f27fbad0ae049..77351faddcdce92c319921d06f0f2185b235ef4b 100644 --- a/webhook-listen/src/main.rs +++ b/webhook-listen/src/main.rs @@ -190,7 +190,7 @@ fn try_main() -> Result<(), Box> { .short('l') .long("logger") .default_value("env") - .possible_values(&[ + .possible_values([ "env", #[cfg(feature = "systemd")] "systemd", @@ -278,7 +278,7 @@ fn try_main() -> Result<(), Box> { ); if matches.is_present("VERIFY") { - Config::from_path(&config_path)?; + Config::from_path(config_path)?; } else if matches.is_present("RELOAD") { let address = matches .get_one::("ADDRESS") diff --git a/webhook-router/src/router.rs b/webhook-router/src/router.rs index 0eee2bf9e262c57513a791ce152179fb121df2f5..4ff56be2a0ef41de39e635958557132d4838808c 100644 --- a/webhook-router/src/router.rs +++ b/webhook-router/src/router.rs @@ -229,7 +229,7 @@ mod test { fn hook_files(path: &Path) -> Vec { let current_dir = OsStr::new("."); let parent_dir = OsStr::new(".."); - fs::read_dir(&path) + fs::read_dir(path) .unwrap() .map(Result::unwrap) .filter(|entry| {