mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-31 02:41:56 +00:00
rng: enable workspace-wide lints
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
parent
522edf798e
commit
05b8f3ff06
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user