Switched to returning an Option for into_context_element().
This commit is contained in:
@@ -105,7 +105,7 @@ pub trait IntoContextElement: Debug + Walkable /* + CloneIntoBoxedContextElement
|
||||
&self,
|
||||
renderer: &DustRenderer,
|
||||
breadcrumbs: Option<&BreadcrumbTree>,
|
||||
) -> &dyn ContextElement;
|
||||
) -> Option<&dyn ContextElement>;
|
||||
}
|
||||
|
||||
impl<C: ContextElement> IntoContextElement for C {
|
||||
@@ -113,7 +113,7 @@ impl<C: ContextElement> IntoContextElement for C {
|
||||
&self,
|
||||
renderer: &DustRenderer,
|
||||
breadcrumbs: Option<&BreadcrumbTree>,
|
||||
) -> &dyn ContextElement {
|
||||
self
|
||||
) -> Option<&dyn ContextElement> {
|
||||
Some(self)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user