Switched to returning an Option for into_context_element().
This commit is contained in:
@@ -36,9 +36,9 @@ impl<'a> IntoContextElement for RValue<'a> {
|
||||
&self,
|
||||
renderer: &DustRenderer,
|
||||
breadcrumbs: Option<&BreadcrumbTree>,
|
||||
) -> &dyn ContextElement {
|
||||
) -> Option<&dyn ContextElement> {
|
||||
match self {
|
||||
RValue::RVLiteral(owned_literal) => owned_literal,
|
||||
RValue::RVLiteral(owned_literal) => Some(owned_literal),
|
||||
RValue::RVPath(path) => todo!(),
|
||||
RValue::RVTemplate(template) => todo!(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user