aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-history/src
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-10 22:28:10 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-10 22:28:10 +0200
commitb4011176cc4b68aed77a6946610a3dcf3b938e95 (patch)
tree65120528263f2330b06829fecf2c4a76052069c7 /crates/atuin-history/src
parentchore: Remove more useless code (diff)
downloadatuin-b4011176cc4b68aed77a6946610a3dcf3b938e95.zip
chore: Turn all `allow`s into into `expect`s
Diffstat (limited to 'crates/atuin-history/src')
-rw-r--r--crates/atuin-history/src/sort.rs2
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;