mirror of
https://github.com/LORDBABUINO/stealth.git
synced 2026-06-09 22:13:29 -07:00
fix(engine): use sort_by_key with Reverse for clippy 1.95
This commit is contained in:
@@ -586,7 +586,7 @@ impl TxGraph {
|
||||
}
|
||||
|
||||
let mut aged: Vec<_> = our_utxos.iter().map(|u| (u, u.confirmations)).collect();
|
||||
aged.sort_by(|a, b| b.1.cmp(&a.1));
|
||||
aged.sort_by_key(|b| std::cmp::Reverse(b.1));
|
||||
|
||||
let oldest = aged.first().unwrap();
|
||||
let newest = aged.last().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user