mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: Remove unnecessary literal casts
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
05cdef17f4
commit
fabd63072b
@@ -1051,7 +1051,7 @@ pub mod tests {
|
||||
assert!(c.is_indirect());
|
||||
|
||||
// create an indirect table with 4 chained descriptors
|
||||
let mut indirect_table = Vec::with_capacity(4 as usize);
|
||||
let mut indirect_table = Vec::with_capacity(4);
|
||||
for j in 0..4 {
|
||||
let desc = VirtqDesc::new(GuestAddress(0x1000 + (j * 16)), m);
|
||||
desc.set(0x1000, 0x1000, VIRTQ_DESC_F_NEXT, (j + 1) as u16);
|
||||
|
||||
Reference in New Issue
Block a user