summaryrefslogtreecommitdiffstats
path: root/src/search.rs
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-11-28 16:09:29 -0600
committerToby Vincent <tobyv13@gmail.com>2022-11-28 16:09:29 -0600
commitda884530e2b3e0b9a5bef9abcf683a970b93bd6b (patch)
tree84653f0fc4e643bb2d2c6d6a1eff79fdd94fbf07 /src/search.rs
parentf7eeef26d5a251c2a925d18d288fec2fa205f59d (diff)
feat: add git and preview (default) features
Diffstat (limited to 'src/search.rs')
-rw-r--r--src/search.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.rs b/src/search.rs
index 2aff5ae..b2db0e3 100644
--- a/src/search.rs
+++ b/src/search.rs
@@ -109,7 +109,7 @@ mod tests {
let mut results = paths.into_iter().collect::<Vec<ProjectItem>>();
- results.sort_unstable_by_key(|p| p.timestamp().unwrap_or_default());
+ results.sort_unstable_by_key(|p| *p.timestamp());
let results = results
.into_iter()