fix(engine): use sort_by_key with Reverse for clippy 1.95

This commit is contained in:
LORDBABUINO
2026-05-25 17:43:37 -03:00
parent 9e4df8ec3c
commit 53a84a87e9
+1 -1
View File
@@ -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();