diff --git a/webhook-router/src/config.rs b/webhook-router/src/config.rs index 3c4f7fdc0a0663d5983a9059c2397fda249ab00b..63d90aaba67525874fa23844dc7cacfd6b696d15 100644 --- a/webhook-router/src/config.rs +++ b/webhook-router/src/config.rs @@ -89,7 +89,7 @@ mod test { fn test_config_empty_paths() { let tempdir = test_utils::create_tempdir(); let path = test_utils::write_config(tempdir.path(), json!({})); - let config = Config::from_path(&path).unwrap(); + let config = Config::from_path(path).unwrap(); assert!(config.post_paths.is_empty()); assert_eq!(config.secrets, None); diff --git a/webhook-router/src/router.rs b/webhook-router/src/router.rs index 4ff56be2a0ef41de39e635958557132d4838808c..b1e26d7e37b74f63c5409187304aa259f12c1853 100644 --- a/webhook-router/src/router.rs +++ b/webhook-router/src/router.rs @@ -475,7 +475,7 @@ mod test { assert_eq!(hook_files.len(), 1); let path = hook_files[0].path(); - let hook_contents = fs::read_to_string(&path).unwrap(); + let hook_contents = fs::read_to_string(path).unwrap(); let actual: Value = serde_json::from_str(&hook_contents).unwrap(); assert_eq!( @@ -573,7 +573,7 @@ mod test { assert_eq!(hook_files.len(), 1); let path = hook_files[0].path(); - let hook_contents = fs::read_to_string(&path).unwrap(); + let hook_contents = fs::read_to_string(path).unwrap(); let actual: Value = serde_json::from_str(&hook_contents).unwrap(); assert_eq!(