diff --git a/src/elf.rs b/src/elf.rs index 0bc3cee1..026607cb 100644 --- a/src/elf.rs +++ b/src/elf.rs @@ -273,7 +273,7 @@ impl SBPFVersion { } /// Holds the function symbols of an Executable -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct FunctionRegistry { pub(crate) map: BTreeMap, T)>, } diff --git a/src/vm.rs b/src/vm.rs index cf3feb46..1b893925 100644 --- a/src/vm.rs +++ b/src/vm.rs @@ -92,7 +92,7 @@ pub type BuiltinFunction = fn(&mut C, u64, u64, u64, u64, u64, &mut MemoryMapping, &mut ProgramResult); /// Represents the interface to a fixed functionality program -#[derive(PartialEq)] +#[derive(PartialEq, Eq)] pub struct BuiltinProgram { /// Holds the Config if this is a loader program config: Option>,