Skip to content

Commit 50d03b8

Browse files
andreeaflorescujiangliu
authored andcommitted
clippy fix: remove useless cast
Signed-off-by: Andreea Florescu <[email protected]>
1 parent a4e0e3e commit 50d03b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ioctls/vm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ impl VmFd {
608608
datamatch: datamatch.into(),
609609
len: std::mem::size_of::<T>() as u32,
610610
addr: match addr {
611-
IoEventAddress::Pio(ref p) => *p as u64,
611+
IoEventAddress::Pio(ref p) => *p,
612612
IoEventAddress::Mmio(ref m) => *m,
613613
},
614614
fd: fd.as_raw_fd(),
@@ -684,7 +684,7 @@ impl VmFd {
684684
datamatch: datamatch.into(),
685685
len: std::mem::size_of::<T>() as u32,
686686
addr: match addr {
687-
IoEventAddress::Pio(ref p) => *p as u64,
687+
IoEventAddress::Pio(ref p) => *p,
688688
IoEventAddress::Mmio(ref m) => *m,
689689
},
690690
fd: fd.as_raw_fd(),

0 commit comments

Comments
 (0)