Skip to content

Commit 3a6c11a

Browse files
committed
refactor(virtio-mem): remove type annotation
This type annotation is redoundant, so we can remove it. Signed-off-by: Riccardo Mancini <[email protected]>
1 parent c41d1ad commit 3a6c11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vmm/src/devices/virtio/mem/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl VirtioDevice for VirtioMem {
233233
}
234234

235235
fn read_config(&self, offset: u64, data: &mut [u8]) {
236-
let offset: usize = u64_to_usize(offset);
236+
let offset = u64_to_usize(offset);
237237
self.config
238238
.as_slice()
239239
.get(offset..offset + data.len())

0 commit comments

Comments
 (0)