rng: enable workspace-wide lints

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
Manos Pitsidianakis 2025-08-01 21:19:17 +03:00 committed by Stefano Garzarella
parent 522edf798e
commit 05b8f3ff06
2 changed files with 5 additions and 2 deletions

View File

@ -32,3 +32,6 @@ vmm-sys-util = "0.14"
assert_matches = "1.5"
virtio-queue = { version = "0.16", features = ["test-utils"] }
vm-memory = { version = "0.16", features = ["backend-mmap", "backend-atomic"] }
[lints]
workspace = true

View File

@ -369,7 +369,7 @@ mod tests {
};
let desc = RawDescriptor::from(SplitDescriptor::new(
(0x100 * (i + 1)) as u64,
u64::from(0x100 * (i + 1)),
0x200,
desc_flags,
i + 1,
@ -579,7 +579,7 @@ mod tests {
assert_eq!(backend.queues_per_thread(), vec![0xffff_ffff]);
assert_eq!(backend.get_config(0, 0), vec![]);
assert!(backend.update_memory(mem).is_ok());
backend.update_memory(mem).unwrap();
backend.set_event_idx(true);
assert!(backend.event_idx);