diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-11-28 16:09:29 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-11-28 16:09:29 -0600 |
commit | da884530e2b3e0b9a5bef9abcf683a970b93bd6b (patch) | |
tree | 84653f0fc4e643bb2d2c6d6a1eff79fdd94fbf07 /src/search.rs | |
parent | f7eeef26d5a251c2a925d18d288fec2fa205f59d (diff) |
feat: add git and preview (default) features
Diffstat (limited to 'src/search.rs')
-rw-r--r-- | src/search.rs | 2 |
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() |