refactor: remove old clippy allow attributes
These lints either resolved themselves, or the code has changed such that they no longer apply, hence they can be removed with no further changes. `clippy::derivable_impls` `clippy::needless_collect` `clippy::almost_swapped`
This commit is contained in:
parent
f099b42005
commit
64a90192d9
@ -2290,9 +2290,6 @@ impl<D> Wallet<D> {
|
|||||||
) -> Result<(), MiniscriptPsbtError> {
|
) -> Result<(), MiniscriptPsbtError> {
|
||||||
// We need to borrow `psbt` mutably within the loops, so we have to allocate a vec for all
|
// We need to borrow `psbt` mutably within the loops, so we have to allocate a vec for all
|
||||||
// the input utxos and outputs
|
// the input utxos and outputs
|
||||||
//
|
|
||||||
// Clippy complains that the collect is not required, but that's wrong
|
|
||||||
#[allow(clippy::needless_collect)]
|
|
||||||
let utxos = (0..psbt.inputs.len())
|
let utxos = (0..psbt.inputs.len())
|
||||||
.filter_map(|i| psbt.get_utxo_for(i).map(|utxo| (true, i, utxo)))
|
.filter_map(|i| psbt.get_utxo_for(i).map(|utxo| (true, i, utxo)))
|
||||||
.chain(
|
.chain(
|
||||||
|
@ -820,7 +820,6 @@ pub enum TapLeavesOptions {
|
|||||||
None,
|
None,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::derivable_impls)]
|
|
||||||
impl Default for SignOptions {
|
impl Default for SignOptions {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
SignOptions {
|
SignOptions {
|
||||||
|
@ -53,7 +53,6 @@ pub struct Args<CS: clap::Subcommand, S: clap::Args> {
|
|||||||
pub command: Commands<CS, S>,
|
pub command: Commands<CS, S>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::almost_swapped)]
|
|
||||||
#[derive(Subcommand, Debug, Clone)]
|
#[derive(Subcommand, Debug, Clone)]
|
||||||
pub enum Commands<CS: clap::Subcommand, S: clap::Args> {
|
pub enum Commands<CS: clap::Subcommand, S: clap::Args> {
|
||||||
#[clap(flatten)]
|
#[clap(flatten)]
|
||||||
@ -137,7 +136,6 @@ impl core::fmt::Display for CoinSelectionAlgo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::almost_swapped)]
|
|
||||||
#[derive(Subcommand, Debug, Clone)]
|
#[derive(Subcommand, Debug, Clone)]
|
||||||
pub enum AddressCmd {
|
pub enum AddressCmd {
|
||||||
/// Get the next unused address.
|
/// Get the next unused address.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user