Skip to content

Commit 729f0ec

Browse files
committed
Some clippy fixes
1 parent 543b263 commit 729f0ec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/wallet/coin_selection.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ pub trait CoinSelectionAlgorithm: std::fmt::Debug {
188188
#[allow(clippy::too_many_arguments)]
189189
fn coin_select(
190190
&self,
191-
raw_candidates: &Vec<WeightedUtxo>,
191+
raw_candidates: &[WeightedUtxo],
192192
selector: bdk_core::CoinSelector,
193193
) -> Result<bdk_core::Selection, Error>;
194194
}
@@ -203,7 +203,7 @@ pub struct LargestFirstCoinSelection;
203203
impl CoinSelectionAlgorithm for LargestFirstCoinSelection {
204204
fn coin_select(
205205
&self,
206-
_raw_candidates: &Vec<WeightedUtxo>,
206+
_raw_candidates: &[WeightedUtxo],
207207
mut selector: bdk_core::CoinSelector,
208208
) -> Result<bdk_core::Selection, Error> {
209209
log::debug!(
@@ -260,7 +260,7 @@ impl<'d, D> Debug for OldestFirstCoinSelection<'d, D> {
260260
impl<'d, D: Database> CoinSelectionAlgorithm for OldestFirstCoinSelection<'d, D> {
261261
fn coin_select(
262262
&self,
263-
raw_candidates: &Vec<WeightedUtxo>,
263+
raw_candidates: &[WeightedUtxo],
264264
mut selector: bdk_core::CoinSelector,
265265
) -> Result<bdk_core::Selection, Error> {
266266
// query db and create a blockheight lookup table
@@ -340,7 +340,7 @@ impl BranchAndBoundCoinSelection {
340340
impl CoinSelectionAlgorithm for BranchAndBoundCoinSelection {
341341
fn coin_select(
342342
&self,
343-
_raw_candidates: &Vec<WeightedUtxo>,
343+
_raw_candidates: &[WeightedUtxo],
344344
mut selector: bdk_core::CoinSelector,
345345
) -> Result<bdk_core::Selection, Error> {
346346
if let Some(final_selector) = bdk_core::coin_select_bnb(self.limit, selector.clone()) {

src/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ where
768768
(Some(rbf), _) => rbf.get_value(),
769769
};
770770

771-
let (fee_rate, mut fee_amount) = match params
771+
let (fee_rate, fee_amount) = match params
772772
.fee_policy
773773
.as_ref()
774774
.unwrap_or(&FeePolicy::FeeRate(FeeRate::default()))

0 commit comments

Comments
 (0)