mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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 <hello@tusharkhatri.in>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user