Skip to content

Commit

Permalink
Derives Eq for BuiltinProgram. (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso authored Aug 24, 2023
1 parent ae5c396 commit 25c0b79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ impl SBPFVersion {
}

/// Holds the function symbols of an Executable
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct FunctionRegistry<T> {
pub(crate) map: BTreeMap<u32, (Vec<u8>, T)>,
}
Expand Down
2 changes: 1 addition & 1 deletion src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub type BuiltinFunction<C> =
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<C: ContextObject> {
/// Holds the Config if this is a loader program
config: Option<Box<Config>>,
Expand Down

0 comments on commit 25c0b79

Please sign in to comment.