diff options
Diffstat (limited to 'crates/atuin-history/src')
| -rw-r--r-- | crates/atuin-history/src/sort.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/atuin-history/src/sort.rs b/crates/atuin-history/src/sort.rs index 4465a142..022865a2 100644 --- a/crates/atuin-history/src/sort.rs +++ b/crates/atuin-history/src/sort.rs @@ -31,7 +31,7 @@ pub fn sort(query: &str, input: Vec<History>) -> Vec<History> { // prefer newer history, but not hugely so as to offset the other scoring // the numbers will get super small over time, but I don't want time to overpower other // scoring - #[allow(clippy::cast_precision_loss)] + #[expect(clippy::cast_precision_loss)] let time_score = 1.0 + (1.0 / diff as f64); let score = score * time_score; |
