Fix the equality test.

This commit is contained in:
Tom Alexander
2020-05-16 23:19:02 -04:00
parent d77ab7401c
commit 03a8328148
2 changed files with 10 additions and 8 deletions

View File

@@ -160,6 +160,7 @@ impl Walkable for OwnedLiteral {
impl CompareContextElement for OwnedLiteral {
fn equals(&self, other: &dyn ContextElement) -> bool {
// println!("equals literal {:?} | {:?}", self, other);
// If its an OwnedLiteral then compare them directly,
// otherwise defer to the other type's implementation of
// CompareContextElement since the end user could add any