Skip to content

Commit 575964f

Browse files
committed
chore: make clippy happy
1 parent dda8638 commit 575964f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/coin_selector.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::*;
22
#[allow(unused)] // some bug in <= 1.48.0 sees this as unused when it isn't
33
use crate::float::FloatExt;
44
use 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

2222
impl<'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)]
581583
impl core::fmt::Display for CoinSelector<'_> {
582584
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
583585
write!(f, "[")?;

0 commit comments

Comments
 (0)