From 25c0b79d8597a7a9bc17824fdca004fc5a6d3f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Thu, 24 Aug 2023 11:51:00 +0200 Subject: [PATCH] Derives Eq for BuiltinProgram. (#504) --- src/elf.rs | 2 +- src/vm.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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>,