From c0b95843e92658da19f67d19f2719e9d27b8ccfd Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 21 Nov 2023 18:06:33 -0500 Subject: [PATCH] fix: default flakes now showing up --- src/app/state/db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/state/db.rs b/src/app/state/db.rs index f83ace20..d6ca8590 100644 --- a/src/app/state/db.rs +++ b/src/app/state/db.rs @@ -50,11 +50,11 @@ impl FlakeCache { let mut pairs: Vec<_> = self .0 .iter() - .filter_map(|(k, v)| v.as_ref().map(|(t, _)| (k, t))) + .map(|(k, v)| (k, v.as_ref().map(|(t, _)| t))) .collect(); // Sort by the timestamp in descending order. - pairs.sort_unstable_by(|a, b| b.1.cmp(a.1)); + pairs.sort_unstable_by(|a, b| b.1.cmp(&a.1)); pairs.into_iter().map(|(k, _)| k.clone()).collect() }