Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate some uses of #[allow] to #[expect] #95

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/defaults/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ fn get_word_token_type(input: &str) -> RawTokenType {
244, 244, 244, 244, 244, 244, 244, 244, 244, 244,
];

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

Expand Down
Loading