Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Adds equivalence of config to BuiltinProgram::eq().
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed May 24, 2023
1 parent 0b37d9f commit b73240c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ impl<C: ContextObject> Debug for BuiltinProgram<C> {

impl<C: ContextObject> PartialEq for BuiltinProgram<C> {
fn eq(&self, other: &Self) -> bool {
if self.config != other.config {
return false;
}
for ((a_key, a_function), (b_key, b_function)) in
self.functions.iter().zip(other.functions.iter())
{
Expand Down

0 comments on commit b73240c

Please sign in to comment.