From b4011176cc4b68aed77a6946610a3dcf3b938e95 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 10 Jun 2026 22:28:10 +0200 Subject: chore: Turn all `allow`s into into `expect`s --- crates/atuin-history/src/sort.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/atuin-history/src') 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) -> Vec { // 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; -- cgit v1.3.1