Skip to content

Commit 2970100

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 b5b70ab commit 2970100

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
@@ -234,7 +234,7 @@ impl VirtioDevice for VirtioMem {
234234
}
235235

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

0 commit comments

Comments
 (0)