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 {