From 8e40c0f8f3363932b05eb3e483175aadb93d1cc7 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Fri, 19 May 2023 17:14:24 +0200 Subject: [PATCH] Fix Clippy issues --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index a209b56..990e633 100644 --- a/src/main.rs +++ b/src/main.rs @@ -101,7 +101,7 @@ fn check_for_non_allowed_refs(nodes: &HashMap, config: &Config) { for (name, dep) in nixpkgs_deps { if let Some(original) = &dep.original { if let Some(ref git_ref) = original.r#ref { - if !config.allowed_refs.contains(&git_ref) { + if !config.allowed_refs.contains(git_ref) { println!( "dependency {} has a Git ref of {} which is not explicitly allowed", name, git_ref @@ -132,7 +132,7 @@ fn main() -> Result<(), Error> { let config_file = include_str!("policy.json"); let config: Config = - serde_json::from_str(&config_file).expect("inline policy.json file is malformed"); + serde_json::from_str(config_file).expect("inline policy.json file is malformed"); check_flake_lock(&flake_lock, &config);