aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-nucleo/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-nucleo/src
parentchore: Remove more useless code (diff)
downloadatuin-b4011176cc4b68aed77a6946610a3dcf3b938e95.zip
chore: Turn all `allow`s into into `expect`s
Diffstat (limited to 'crates/atuin-nucleo/src')
-rw-r--r--crates/atuin-nucleo/src/par_sort.rs2
-rw-r--r--crates/atuin-nucleo/src/worker.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/atuin-nucleo/src/par_sort.rs b/crates/atuin-nucleo/src/par_sort.rs
index 92f716cc..b7ca3f9e 100644
--- a/crates/atuin-nucleo/src/par_sort.rs
+++ b/crates/atuin-nucleo/src/par_sort.rs
@@ -703,7 +703,7 @@ where
let len = v.len();
// Three indices near which we are going to choose a pivot.
- #[allow(clippy::identity_op)]
+ #[expect(clippy::identity_op)]
let mut a = len / 4 * 1;
let mut b = len / 4 * 2;
let mut c = len / 4 * 3;
diff --git a/crates/atuin-nucleo/src/worker.rs b/crates/atuin-nucleo/src/worker.rs
index 45e27cee..83472e79 100644
--- a/crates/atuin-nucleo/src/worker.rs
+++ b/crates/atuin-nucleo/src/worker.rs
@@ -15,7 +15,7 @@ struct Matchers(Box<[UnsafeCell<atuin_nucleo_matcher::Matcher>]>);
impl Matchers {
// this is not a true mut from ref, we use a cell here
- #[allow(clippy::mut_from_ref)]
+ #[expect(clippy::mut_from_ref)]
unsafe fn get(&self) -> &mut atuin_nucleo_matcher::Matcher {
&mut *self.0[rayon::current_thread_index().unwrap()].get()
}