Skip to content

Commit 45c263b

Browse files
committed
Fix clippy
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
1 parent 350d08f commit 45c263b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
- run: rustup update stable
1111
- run: rustup component add rustfmt clippy
1212
- run: cargo fmt --all -- --check --files-with-diff
13-
- run: cargo clippy --all-targets --all-features -- -D warnings
14-
- run: cargo test --all-targets --all-features
13+
- run: cargo clippy --all-features -- -D warnings
14+
- run: cargo test --all-features
1515
- run: cargo check

hv/src/x86/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use std::ffi::c_void;
44
use std::mem;
55

6-
use crate::{call, sys, vm::Memory, Addr, Error, GPAddr, Size, Vcpu, Vm};
6+
use crate::{call, sys, Addr, Error, GPAddr, Memory, Size, Vcpu, Vm};
77

88
pub mod vmx;
99

@@ -182,7 +182,7 @@ impl VmExt for Vm {
182182
) -> Result<(), Error> {
183183
call!(sys::hv_vm_map_space(
184184
asid,
185-
uva,
185+
uva as *const c_void,
186186
gpa,
187187
size,
188188
flags.bits().into()

0 commit comments

Comments
 (0)