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-nucleo/src/par_sort.rs | 2 +- crates/atuin-nucleo/src/worker.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/atuin-nucleo/src') 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]>); 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() } -- cgit v1.3.1