@@ -188,7 +188,7 @@ pub trait CoinSelectionAlgorithm: std::fmt::Debug {
188
188
#[ allow( clippy:: too_many_arguments) ]
189
189
fn coin_select (
190
190
& self ,
191
- raw_candidates : & Vec < WeightedUtxo > ,
191
+ raw_candidates : & [ WeightedUtxo ] ,
192
192
selector : bdk_core:: CoinSelector ,
193
193
) -> Result < bdk_core:: Selection , Error > ;
194
194
}
@@ -203,7 +203,7 @@ pub struct LargestFirstCoinSelection;
203
203
impl CoinSelectionAlgorithm for LargestFirstCoinSelection {
204
204
fn coin_select (
205
205
& self ,
206
- _raw_candidates : & Vec < WeightedUtxo > ,
206
+ _raw_candidates : & [ WeightedUtxo ] ,
207
207
mut selector : bdk_core:: CoinSelector ,
208
208
) -> Result < bdk_core:: Selection , Error > {
209
209
log:: debug!(
@@ -260,7 +260,7 @@ impl<'d, D> Debug for OldestFirstCoinSelection<'d, D> {
260
260
impl < ' d , D : Database > CoinSelectionAlgorithm for OldestFirstCoinSelection < ' d , D > {
261
261
fn coin_select (
262
262
& self ,
263
- raw_candidates : & Vec < WeightedUtxo > ,
263
+ raw_candidates : & [ WeightedUtxo ] ,
264
264
mut selector : bdk_core:: CoinSelector ,
265
265
) -> Result < bdk_core:: Selection , Error > {
266
266
// query db and create a blockheight lookup table
@@ -340,7 +340,7 @@ impl BranchAndBoundCoinSelection {
340
340
impl CoinSelectionAlgorithm for BranchAndBoundCoinSelection {
341
341
fn coin_select (
342
342
& self ,
343
- _raw_candidates : & Vec < WeightedUtxo > ,
343
+ _raw_candidates : & [ WeightedUtxo ] ,
344
344
mut selector : bdk_core:: CoinSelector ,
345
345
) -> Result < bdk_core:: Selection , Error > {
346
346
if let Some ( final_selector) = bdk_core:: coin_select_bnb ( self . limit , selector. clone ( ) ) {
0 commit comments