Skip to content

Commit 000eed4

Browse files
committed
Migrate some uses of #[allow] to #[expect]
Stabilised in rust 1.81.0 (2024-09-05). rust-lang/rust#120924
1 parent 8f0b00f commit 000eed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/defaults/lexer.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ fn get_word_token_type(input: &str) -> RawTokenType {
507507
244, 244, 244, 244, 244, 244, 244, 244, 244, 244,
508508
];
509509

510-
#[allow(clippy::len_zero)]
510+
#[expect(clippy::len_zero)]
511511
const fn hash_keyword(input: &str) -> u16 {
512512
let bytes = input.as_bytes();
513513
let mut sum = bytes.len() as u16;
@@ -592,7 +592,7 @@ unsafe fn find_identifier_end_avx2(input: &str, mut offset: usize) -> usize {
592592
// above guarantees that the offset ptr is in bounds and points into the same allocation.
593593
let chunk_ptr: *const Chunk = unsafe {
594594
// the `loadu` variant of this intrinsic doesn't require aligned addresses
595-
#[allow(clippy::cast_ptr_alignment)]
595+
#[expect(clippy::cast_ptr_alignment)]
596596
input.as_ptr().add(offset).cast::<Chunk>()
597597
};
598598

0 commit comments

Comments
 (0)