aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-nucleo/matcher/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/matcher/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/matcher/src')
-rw-r--r--crates/atuin-nucleo/matcher/src/chars.rs2
-rw-r--r--crates/atuin-nucleo/matcher/src/fuzzy_optimal.rs2
-rw-r--r--crates/atuin-nucleo/matcher/src/lib.rs2
-rw-r--r--crates/atuin-nucleo/matcher/src/matrix.rs4
4 files changed, 5 insertions, 5 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],