PartialEq compiling with double lifetimes.
This commit is contained in:
parent
8fd2a9cf39
commit
e986a1ba7a
@ -40,8 +40,8 @@ pub trait IntoBoxedContextElement {
|
||||
fn clone_to_box(&self) -> Box<dyn ContextElement>;
|
||||
}
|
||||
|
||||
// impl PartialEq<dyn ContextElement> for dyn ContextElement {
|
||||
// fn eq(&self, other: &dyn ContextElement) -> bool {
|
||||
// todo!()
|
||||
// }
|
||||
// }
|
||||
impl<'a, 'b> PartialEq<&'b dyn ContextElement> for &'a dyn ContextElement {
|
||||
fn eq(&self, other: &&'b dyn ContextElement) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
@ -245,7 +245,10 @@ impl<'a> DustRenderer<'a> {
|
||||
RValue::RVPath(path) => walk_path(breadcrumbs, &path.keys),
|
||||
},
|
||||
};
|
||||
if left_side.unwrap().equals(right_side.unwrap()) {
|
||||
// if left_side.unwrap().equals(right_side.unwrap()) {
|
||||
// panic!("testing");
|
||||
// }
|
||||
if left_side.unwrap() == right_side.unwrap() {
|
||||
panic!("testing");
|
||||
}
|
||||
// let x = WalkError::CantWalk;
|
||||
|
Loading…
x
Reference in New Issue
Block a user