From b47ae713b5efbfd68c0313986b6901d3cb0be9fc Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 4 Feb 2025 06:45:55 +0000 Subject: [PATCH] Fix incidental clippy lints from new stable Rust --- src/commands/inspect/transaction.rs | 2 +- src/remote.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/inspect/transaction.rs b/src/commands/inspect/transaction.rs index c8130f3..551ba62 100644 --- a/src/commands/inspect/transaction.rs +++ b/src/commands/inspect/transaction.rs @@ -182,7 +182,7 @@ pub(crate) fn inspect( }; let transparent_coins = match ( - tx.transparent_bundle().map_or(false, |b| !b.vin.is_empty()), + tx.transparent_bundle().is_some_and(|b| !b.vin.is_empty()), context.as_ref().and_then(|ctx| ctx.transparent_coins()), ) { (true, coins) => coins, diff --git a/src/remote.rs b/src/remote.rs index db52a00..ac47499 100644 --- a/src/remote.rs +++ b/src/remote.rs @@ -114,7 +114,7 @@ impl Server<'static> { } } -impl<'a> Server<'a> { +impl Server<'_> { fn custom(host: String, port: u16) -> Self { Self { host: Cow::Owned(host),