Add the renderer to calls to convert to a context element.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use crate::parser::Filter;
|
||||
use crate::renderer::errors::RenderError;
|
||||
use crate::renderer::errors::WalkError;
|
||||
use crate::renderer::DustRenderer;
|
||||
use std::any::Any;
|
||||
use std::{cmp::Ordering, fmt::Debug};
|
||||
|
||||
@@ -101,6 +102,7 @@ impl<C: ContextElement> FromContextElement for C {
|
||||
pub trait IntoContextElement: Debug + Walkable + CloneIntoBoxedContextElement {
|
||||
fn into_context_element(
|
||||
&self,
|
||||
renderer: &DustRenderer,
|
||||
breadcrumbs: &Vec<&dyn IntoContextElement>,
|
||||
) -> &dyn ContextElement;
|
||||
}
|
||||
@@ -108,6 +110,7 @@ pub trait IntoContextElement: Debug + Walkable + CloneIntoBoxedContextElement {
|
||||
impl<C: ContextElement> IntoContextElement for C {
|
||||
fn into_context_element(
|
||||
&self,
|
||||
renderer: &DustRenderer,
|
||||
breadcrumbs: &Vec<&dyn IntoContextElement>,
|
||||
) -> &dyn ContextElement {
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user