Skip to content

Commit fe2ba0f

Browse files
mxpvsameo
authored andcommitted
Fix clippy warnings
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
1 parent caaa894 commit fe2ba0f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hv/examples/as.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ const GUEST_RESULT_ADDR: usize = GUEST_ADDR + RESULT_OFFSET;
2828
#[cfg(target_arch = "aarch64")]
2929
use hv::arm64::{Reg, VcpuExt};
3030

31-
use std::sync::Arc;
32-
3331
#[cfg(target_arch = "aarch64")]
3432
fn main() -> Result<(), hv::Error> {
33+
use std::sync::Arc;
34+
3535
let load_addr = unsafe {
3636
libc::mmap(
3737
std::ptr::null_mut(),

hv/src/x86/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ impl Default for VmOptions {
4545
#[cfg(feature = "hv_10_15")]
4646
#[derive(Debug)]
4747
pub struct Space {
48+
#[allow(dead_code)] // Keep handle alive as long as `Space` exists.
4849
vm: Arc<Vm>,
4950
id: SpaceId,
5051
}

0 commit comments

Comments
 (0)