From 1952a35f7cc8552bb344c8e10723d89f037e2b2a Mon Sep 17 00:00:00 2001 From: Arend van Beelen jr Date: Fri, 14 Jul 2023 12:30:23 +0200 Subject: [PATCH] Don't use is_some_and() (#150) --- Cargo.lock | 2 +- src/tasks/provider_manager.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e010f9c..10c3b44 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1199,7 +1199,7 @@ dependencies = [ [[package]] name = "fpd" -version = "2.13.0" +version = "2.14.0" dependencies = [ "anyhow", "async-channel", diff --git a/src/tasks/provider_manager.rs b/src/tasks/provider_manager.rs index 22d07a3..f6f42c6 100644 --- a/src/tasks/provider_manager.rs +++ b/src/tasks/provider_manager.rs @@ -185,7 +185,10 @@ async fn download_providers_tarball( for entry in archive.entries()? { let mut entry = entry?; let path = entry.path()?; - if !path.extension().is_some_and(|ext| ext == "wasm") { + if match path.extension() { + Some(ext) => ext != "wasm", + None => true, + } { continue; }