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),