Making CastToAny more generic.
This commit is contained in:
parent
9baa669dea
commit
2fb7ca9db7
@ -48,7 +48,7 @@ impl<C: 'static + ContextElement + Clone> CloneIntoBoxedContextElement for C {
|
||||
}
|
||||
}
|
||||
|
||||
impl<C: 'static + ContextElement + PartialEq> CastToAny for C {
|
||||
impl<C: 'static + ContextElement> CastToAny for C {
|
||||
fn to_any(&self) -> &dyn Any {
|
||||
self
|
||||
}
|
||||
|
@ -112,12 +112,6 @@ impl Clone for NewParametersContext {
|
||||
}
|
||||
}
|
||||
|
||||
impl CastToAny for NewParametersContext {
|
||||
fn to_any(&self) -> &dyn Any {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl CompareContextElement for NewParametersContext {
|
||||
fn equals(&self, other: &dyn ContextElement) -> bool {
|
||||
// TODO: Does this ever happen? perhaps I should have a panic here.
|
||||
|
Loading…
Reference in New Issue
Block a user