Skip to content

Commit 4732e71

Browse files
committed
fix clippy and format issues
Signed-off-by: Simon Davies <[email protected]>
1 parent 3098bc4 commit 4732e71

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/hyperlight_host/src/hypervisor/hyperv_windows.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,15 @@ use super::surrogate_process_manager::*;
3535
use super::windows_hypervisor_platform::{VMPartition, VMProcessor};
3636
use super::wrappers::WHvFPURegisters;
3737
use super::{
38-
windows_hypervisor_platform as whp, HyperlightExit, Hypervisor, VirtualCPU, CR0_AM, CR0_ET,
39-
CR0_MP, CR0_NE, CR0_PE, CR0_PG, CR0_WP, CR4_OSFXSR, CR4_OSXMMEXCPT, CR4_PAE, EFER_LMA,
40-
EFER_LME, EFER_NX, EFER_SCE,
38+
HyperlightExit, Hypervisor, VirtualCPU, CR0_AM, CR0_ET, CR0_MP, CR0_NE, CR0_PE, CR0_PG, CR0_WP,
39+
CR4_OSFXSR, CR4_OSXMMEXCPT, CR4_PAE, EFER_LMA, EFER_LME, EFER_NX, EFER_SCE,
4140
};
4241
use crate::hypervisor::fpu::FP_CONTROL_WORD_DEFAULT;
4342
use crate::hypervisor::hypervisor_handler::HypervisorHandler;
4443
use crate::hypervisor::wrappers::WHvGeneralRegisters;
4544
use crate::mem::memory_region::{MemoryRegion, MemoryRegionFlags};
4645
use crate::mem::ptr::{GuestPtr, RawPtr};
47-
use crate::HyperlightError::{NoHypervisorFound, WindowsAPIError};
46+
use crate::HyperlightError::WindowsAPIError;
4847
use crate::{debug, log_then_return, new_error, Result};
4948

5049
/// A Hypervisor driver for HyperV-on-Windows.
@@ -75,7 +74,6 @@ impl HypervWindowsDriver {
7574
entrypoint: u64,
7675
rsp: u64,
7776
) -> Result<Self> {
78-
7977
// create and setup hypervisor partition
8078
let mut partition = VMPartition::new(1)?;
8179

src/hyperlight_host/src/hypervisor/kvm.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ impl KVMDriver {
7676
entrypoint: u64,
7777
rsp: u64,
7878
) -> Result<Self> {
79-
8079
let kvm = Kvm::new()?;
8180

8281
let vm_fd = kvm.create_vm_with_type(0)?;

0 commit comments

Comments
 (0)