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) } 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), }