From db420f3a521c77a4003bb423d3cd7a67a25253e4 Mon Sep 17 00:00:00 2001 From: pasta Date: Wed, 2 Oct 2024 14:33:40 -0500 Subject: [PATCH] fixup: use if instead of match --- crates/librqbit_core/src/magnet.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/librqbit_core/src/magnet.rs b/crates/librqbit_core/src/magnet.rs index 5ba577c..22ca5aa 100644 --- a/crates/librqbit_core/src/magnet.rs +++ b/crates/librqbit_core/src/magnet.rs @@ -90,9 +90,10 @@ impl Magnet { id20, id32, trackers, - select_only: match files.is_empty() { - true => None, - false => Some(files), + select_only: if files.is_empty() { + None + } else { + Some(files) }, }), false => {