From: Steven Roose Date: Fri, 2 Feb 2024 02:02:27 +0000 (+0000) Subject: Avoid a wildcard match in tx construction X-Git-Tag: v1.0.0-alpha.6~4^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CommandStringError.html?a=commitdiff_plain;h=9bb39a3a3fcdebeec53a8a771091954c845db7a5;p=bdk Avoid a wildcard match in tx construction --- diff --git a/crates/bdk/src/wallet/mod.rs b/crates/bdk/src/wallet/mod.rs index a6b4f987..c3151560 100644 --- a/crates/bdk/src/wallet/mod.rs +++ b/crates/bdk/src/wallet/mod.rs @@ -1347,7 +1347,7 @@ impl Wallet { } Some(tx_builder::Version(x)) => x, None if requirements.csv.is_some() => 2, - _ => 1, + None => 1, }; // We use a match here instead of a unwrap_or_else as it's way more readable :)