diff options
Diffstat (limited to 'crates/atuin-nucleo')
| -rw-r--r-- | crates/atuin-nucleo/matcher/src/chars.rs | 2 | ||||
| -rw-r--r-- | crates/atuin-nucleo/matcher/src/fuzzy_optimal.rs | 2 | ||||
| -rw-r--r-- | crates/atuin-nucleo/matcher/src/lib.rs | 2 | ||||
| -rw-r--r-- | crates/atuin-nucleo/matcher/src/matrix.rs | 4 | ||||
| -rw-r--r-- | crates/atuin-nucleo/src/par_sort.rs | 2 | ||||
| -rw-r--r-- | crates/atuin-nucleo/src/worker.rs | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/crates/atuin-nucleo/matcher/src/chars.rs b/crates/atuin-nucleo/matcher/src/chars.rs index d13a2466..045d9b2d 100644 --- a/crates/atuin-nucleo/matcher/src/chars.rs +++ b/crates/atuin-nucleo/matcher/src/chars.rs @@ -7,7 +7,7 @@ use crate::chars::case_fold::CASE_FOLDING_SIMPLE; use crate::Config; //autogenerated by generate-ucd -#[allow(warnings)] +#[expect(warnings)] #[rustfmt::skip] #[cfg(feature = "unicode-casefold")] mod case_fold; diff --git a/crates/atuin-nucleo/matcher/src/fuzzy_optimal.rs b/crates/atuin-nucleo/matcher/src/fuzzy_optimal.rs index 1bcebe2c..c3aad8c3 100644 --- a/crates/atuin-nucleo/matcher/src/fuzzy_optimal.rs +++ b/crates/atuin-nucleo/matcher/src/fuzzy_optimal.rs @@ -179,7 +179,7 @@ impl<H: Char> MatcherDataView<'_, H> { true } - #[allow(clippy::too_many_arguments)] + #[expect(clippy::too_many_arguments)] fn score_row<const FIRST_ROW: bool, const INDICES: bool, N: Char>( current_row: &mut [ScoreCell], matrix_cells: &mut [MatrixCell], diff --git a/crates/atuin-nucleo/matcher/src/lib.rs b/crates/atuin-nucleo/matcher/src/lib.rs index 9ae4b665..e40c5be7 100644 --- a/crates/atuin-nucleo/matcher/src/lib.rs +++ b/crates/atuin-nucleo/matcher/src/lib.rs @@ -152,7 +152,7 @@ use crate::matrix::MatrixSlab; /// that the matcher **will panic**. The caller must decide whether it wants to /// filter out long haystacks or truncate them. pub struct Matcher { - #[allow(missing_docs)] + #[expect(missing_docs)] pub config: Config, slab: MatrixSlab, } diff --git a/crates/atuin-nucleo/matcher/src/matrix.rs b/crates/atuin-nucleo/matcher/src/matrix.rs index a91ed95f..5c68f2fd 100644 --- a/crates/atuin-nucleo/matcher/src/matrix.rs +++ b/crates/atuin-nucleo/matcher/src/matrix.rs @@ -60,7 +60,7 @@ impl<C: Char> MatrixLayout<C> { /// # Safety /// /// `ptr` must point at an allocated with MARTIX_ALLOC_LAYOUT - #[allow(clippy::type_complexity)] + #[expect(clippy::type_complexity)] unsafe fn fieds_from_ptr( &self, ptr: NonNull<u8>, @@ -128,7 +128,7 @@ impl MatrixCell { } // we only use this to construct the layout for the slab allocation -#[allow(unused)] +#[expect(unused)] struct MatcherData { haystack: [char; MAX_HAYSTACK_LEN], bonus: [u8; MAX_HAYSTACK_LEN], 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() } |
