add auto implementation of Pod::equals (#327)
This commit is contained in:
parent
e0d2fce060
commit
335100d1d7
7 changed files with 21 additions and 75 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue