[ci] Fix clippy warnings for 1.47.0
This commit is contained in:
parent
98803b2573
commit
070d481849
@ -140,13 +140,11 @@ pub enum SatisfiableItem {
|
|||||||
|
|
||||||
impl SatisfiableItem {
|
impl SatisfiableItem {
|
||||||
pub fn is_leaf(&self) -> bool {
|
pub fn is_leaf(&self) -> bool {
|
||||||
match self {
|
!matches!(self,
|
||||||
SatisfiableItem::Thresh {
|
SatisfiableItem::Thresh {
|
||||||
items: _,
|
items: _,
|
||||||
threshold: _,
|
threshold: _,
|
||||||
} => false,
|
})
|
||||||
_ => true,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn id(&self) -> String {
|
pub fn id(&self) -> String {
|
||||||
|
@ -133,7 +133,7 @@ impl WalletExport {
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|tx| tx.height.unwrap_or(0))
|
.map(|tx| tx.height.unwrap_or(0))
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
heights.sort();
|
heights.sort_unstable();
|
||||||
|
|
||||||
*heights.last().unwrap_or(&0)
|
*heights.last().unwrap_or(&0)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user