add auto implementation of Pod::equals (#327)

This commit is contained in:
Daniel Gulotta 2025-07-01 11:09:35 -07:00 committed by GitHub
parent e0d2fce060
commit 335100d1d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 21 additions and 75 deletions

View file

@ -676,17 +676,6 @@ impl Pod for MainPod {
})
.expect("serialization to json")
}
fn as_any(&self) -> &dyn Any {
self
}
fn equals(&self, other: &dyn Pod) -> bool {
if let Some(other) = other.as_any().downcast_ref::<MainPod>() {
self == other
} else {
false
}
}
}
impl RecursivePod for MainPod {