From fff27a6df5b6ebc3b280537f3bb1c94f40e699c1 Mon Sep 17 00:00:00 2001 From: Lucy Menon <168595099+syntactically@users.noreply.github.com> Date: Tue, 7 Oct 2025 00:47:33 +0100 Subject: [PATCH 1/2] Fix Rust 0.90 Clippy warnings Signed-off-by: Simon Davies --- src/hyperlight_guest_bin/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyperlight_guest_bin/build.rs b/src/hyperlight_guest_bin/build.rs index a7bce651b..573bed7d6 100644 --- a/src/hyperlight_guest_bin/build.rs +++ b/src/hyperlight_guest_bin/build.rs @@ -264,7 +264,7 @@ fn main() -> std::process::ExitCode { .args(args) .status() .ok() - .and_then(|x| (x.code())) + .and_then(|x| x.code()) .map(|x| (x as u8).into()) .unwrap_or(std::process::ExitCode::FAILURE) } From 90003bec93b8ee404b24dc7af8200013c56bbb6c Mon Sep 17 00:00:00 2001 From: Lucy Menon <168595099+syntactically@users.noreply.github.com> Date: Mon, 13 Oct 2025 02:08:24 +0100 Subject: [PATCH 2/2] Remove clippy ignore that is not required now that PE files are gone Signed-off-by: Simon Davies --- src/hyperlight_host/src/mem/exe.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/hyperlight_host/src/mem/exe.rs b/src/hyperlight_host/src/mem/exe.rs index dde991d8e..303b0dc79 100644 --- a/src/hyperlight_host/src/mem/exe.rs +++ b/src/hyperlight_host/src/mem/exe.rs @@ -24,10 +24,6 @@ use super::elf::ElfInfo; use super::ptr_offset::Offset; use crate::Result; -// This is used extremely infrequently, so being unusually large for PE -// files _really_ doesn't matter, and probably isn't really worth the -// cost of an indirection. -#[allow(clippy::large_enum_variant)] pub enum ExeInfo { Elf(ElfInfo), }