Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Davies <[email protected]>
  • Loading branch information
simongdavies committed Dec 12, 2024
1 parent 264ca4b commit 92c4b41
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/hyperlight_host/src/sandbox/uninitialized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,9 @@ fn check_windows_version() -> Result<()> {
"Hyperlight Requires Windows Server 2022 or newer"
));
}
} else {
if OsVersion::current() < OsVersion::new(WINDOWS_MAJOR, WINDOWS_MINOR, WINDOWS_PACK, 22000)
{
return Err(new_error!("Hyperlight Requires Windows 11 or newer"));
}
} else if OsVersion::current() < OsVersion::new(WINDOWS_MAJOR, WINDOWS_MINOR, WINDOWS_PACK, 22000)
{
return Err(new_error!("Hyperlight Requires Windows 11 or newer"));
}
Ok(())
}
Expand Down

0 comments on commit 92c4b41

Please sign in to comment.