Skip to content

Commit 92c4b41

Browse files
committed
fix clippy
Signed-off-by: Simon Davies <[email protected]>
1 parent 264ca4b commit 92c4b41

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/hyperlight_host/src/sandbox/uninitialized.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,9 @@ fn check_windows_version() -> Result<()> {
324324
"Hyperlight Requires Windows Server 2022 or newer"
325325
));
326326
}
327-
} else {
328-
if OsVersion::current() < OsVersion::new(WINDOWS_MAJOR, WINDOWS_MINOR, WINDOWS_PACK, 22000)
329-
{
330-
return Err(new_error!("Hyperlight Requires Windows 11 or newer"));
331-
}
327+
} else if OsVersion::current() < OsVersion::new(WINDOWS_MAJOR, WINDOWS_MINOR, WINDOWS_PACK, 22000)
328+
{
329+
return Err(new_error!("Hyperlight Requires Windows 11 or newer"));
332330
}
333331
Ok(())
334332
}

0 commit comments

Comments
 (0)