From d3d0b23a319d50fd44f4c1f725891899e91a6f30 Mon Sep 17 00:00:00 2001 From: Truman Kilen Date: Thu, 16 Feb 2023 12:14:57 -0600 Subject: [PATCH] clippy --- repak_cli/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/repak_cli/src/main.rs b/repak_cli/src/main.rs index 36537b7..593c2f5 100644 --- a/repak_cli/src/main.rs +++ b/repak_cli/src/main.rs @@ -184,8 +184,7 @@ fn unpack(args: ActionUnpack) -> Result<(), repak::Error> { || (File::open(&args.input), includes.clone()), |(file, includes), path| -> Result<(), repak::Error> { let full_path = mount_point.join(&path); - if !includes.is_empty() && includes.iter().find(|i| full_path.starts_with(i)).is_none() - { + if !includes.is_empty() && !includes.iter().any(|i| full_path.starts_with(i)) { return Ok(()); } if args.verbose {