From 7be97937ef8ef64e155ae5e5490e90e78d830244 Mon Sep 17 00:00:00 2001 From: Tushar Khatri Date: Wed, 17 Jun 2026 16:05:02 +0000 Subject: [PATCH] block: reevaluate #[allow] attributes Convert the still-needed #[allow]s to #[expect] so they warn if the lints stop firing. Part of #8326. Signed-off-by: Tushar Khatri --- block/src/formats/qcow/worker/async_uring.rs | 2 +- block/src/io/fcntl.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/src/formats/qcow/worker/async_uring.rs b/block/src/formats/qcow/worker/async_uring.rs index 4e9d06d3b..6e93ac609 100644 --- a/block/src/formats/qcow/worker/async_uring.rs +++ b/block/src/formats/qcow/worker/async_uring.rs @@ -321,7 +321,7 @@ impl QcowAsync { /// Returns `Some(host_offset)` if the entire read falls within a single /// allocated cluster (fast path). Otherwise handles the read /// synchronously via `scatter_read_sync` and returns `None`. - #[allow(clippy::too_many_arguments)] + #[expect(clippy::too_many_arguments)] fn resolve_read( metadata: &QcowMetadata, data_file: &QcowRawFile, diff --git a/block/src/io/fcntl.rs b/block/src/io/fcntl.rs index 0cb2ee552..7faa9540e 100644 --- a/block/src/io/fcntl.rs +++ b/block/src/io/fcntl.rs @@ -34,7 +34,7 @@ pub enum LockError { } /// Commands for use with [`fcntl`]. -#[allow(non_camel_case_types)] +#[expect(non_camel_case_types)] enum FcntlArg<'a> { /// Set an OFD lock from the given lock description. F_OFD_SETLK(&'a libc::flock),