[ci] Fix clippy warnings for 1.47.0

This commit is contained in:
Steve Myers committed 2020-10-10 10:31:08 -07:00
1 parent 98803b2573
commit 070d481849
2 files changed
+6 -8

No files matched your search

+5 -7
View File
@@ -140,13 +140,11 @@ pub enum SatisfiableItem {
impl SatisfiableItem {
pub fn is_leaf(&self) -> bool {
match self {
SatisfiableItem::Thresh {
items: _,
threshold: _,
} => false,
_ => true,
}
!matches!(self,
SatisfiableItem::Thresh {
items: _,
threshold: _,
})
}
pub fn id(&self) -> String {
+1 -1
View File
@@ -133,7 +133,7 @@ impl WalletExport {
.into_iter()
.map(|tx| tx.height.unwrap_or(0))
.collect::<Vec<_>>();
heights.sort();
heights.sort_unstable();
*heights.last().unwrap_or(&0)
}