@@ -2,7 +2,7 @@ use super::*;
22#[ allow( unused) ] // some bug in <= 1.48.0 sees this as unused when it isn't
33use crate :: float:: FloatExt ;
44use crate :: { bnb:: BnbMetric , float:: Ordf32 , ChangePolicy , FeeRate , Target } ;
5- use alloc:: { borrow:: Cow , collections:: BTreeSet , vec :: Vec } ;
5+ use alloc:: { borrow:: Cow , collections:: BTreeSet } ;
66
77/// [`CoinSelector`] selects/deselects coins from a set of canididate coins.
88///
@@ -16,7 +16,7 @@ pub struct CoinSelector<'a> {
1616 candidates : & ' a [ Candidate ] ,
1717 selected : Cow < ' a , BTreeSet < usize > > ,
1818 banned : Cow < ' a , BTreeSet < usize > > ,
19- candidate_order : Cow < ' a , Vec < usize > > ,
19+ candidate_order : Cow < ' a , [ usize ] > ,
2020}
2121
2222impl < ' a > CoinSelector < ' a > {
@@ -578,6 +578,8 @@ impl<'a> CoinSelector<'a> {
578578 }
579579}
580580
581+ // Allow this for now due to MSRV
582+ #[ allow( clippy:: uninlined_format_args) ]
581583impl core:: fmt:: Display for CoinSelector < ' _ > {
582584 fn fmt ( & self , f : & mut core:: fmt:: Formatter < ' _ > ) -> core:: fmt:: Result {
583585 write ! ( f, "[" ) ?;
0 commit comments