Skip to content

Commit

Permalink
PartialEq for Function
Browse files Browse the repository at this point in the history
  • Loading branch information
bergey committed Nov 30, 2024
1 parent 83fc312 commit b3c4ac5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ impl Equivalent for Function {
}
}

impl PartialEq for Function {
fn eq(&self, other: &Self) -> bool {
self.equivalent(other)
}
}

impl fmt::Display for Function {
fn fmt(&self, out: &mut fmt::Formatter) -> fmt::Result {
use Function::*;
Expand Down

0 comments on commit b3c4ac5

Please sign in to comment.