From f522fa938421450a9c55ec751de794f61a35c52e Mon Sep 17 00:00:00 2001 From: Greg Martin Date: Sun, 12 Mar 2023 23:47:48 +0000 Subject: [PATCH] Fix errors found by clippy since the rust 1.68.0 update. --- src/index.rs | 1 - src/subcommand/server.rs | 4 ++-- src/subcommand/wallet/transaction_builder.rs | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/index.rs b/src/index.rs index e4c02d853c..eb79d8f2a4 100644 --- a/src/index.rs +++ b/src/index.rs @@ -568,7 +568,6 @@ impl Index { .open_table(SATPOINT_TO_INSCRIPTION_ID)?, outpoint, )? - .into_iter() .map(|(_satpoint, inscription_id)| inscription_id) .collect(), ) diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index 63adafb300..9f79a777a3 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -768,7 +768,7 @@ impl Server { .get_inscription_by_id(inscription_id)? .ok_or_not_found(|| format!("inscription {inscription_id}"))?; - return match inscription.media() { + match inscription.media() { Media::Audio => Ok(PreviewAudioHtml { inscription_id }.into_response()), Media::Iframe => Ok( Self::content_response(inscription) @@ -809,7 +809,7 @@ impl Server { } Media::Unknown => Ok(PreviewUnknownHtml.into_response()), Media::Video => Ok(PreviewVideoHtml { inscription_id }.into_response()), - }; + } } async fn inscription( diff --git a/src/subcommand/wallet/transaction_builder.rs b/src/subcommand/wallet/transaction_builder.rs index aed340be39..11f73d4f65 100644 --- a/src/subcommand/wallet/transaction_builder.rs +++ b/src/subcommand/wallet/transaction_builder.rs @@ -427,7 +427,6 @@ impl TransactionBuilder { version: 1, lock_time: PackedLockTime::ZERO, input: (0..inputs) - .into_iter() .map(|_| TxIn { previous_output: OutPoint::null(), script_sig: Script::new(),