Cleaning up.
This commit is contained in:
@@ -54,19 +54,6 @@ impl<C: 'static + ContextElement> CastToAny for C {
|
||||
}
|
||||
}
|
||||
|
||||
// impl<C: 'static + ContextElement + PartialEq> CompareContextElement for C {
|
||||
// fn to_any(&self) -> &dyn Any {
|
||||
// self
|
||||
// }
|
||||
|
||||
// fn equals(&self, other: &dyn ContextElement) -> bool {
|
||||
// other
|
||||
// .to_any()
|
||||
// .downcast_ref::<Self>()
|
||||
// .map_or(false, |a| self == a)
|
||||
// }
|
||||
// }
|
||||
|
||||
impl<'a, 'b> PartialEq<&'b dyn ContextElement> for &'a dyn ContextElement {
|
||||
fn eq(&self, other: &&'b dyn ContextElement) -> bool {
|
||||
self.equals(*other)
|
||||
|
||||
Reference in New Issue
Block a user