Going to try removing clone from the tokens.
This commit is contained in:
parent
b20568c09e
commit
2db400198e
@ -69,18 +69,18 @@ impl<'r> ContextTree<'r> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug)]
|
||||||
pub enum ContextElement<'r> {
|
pub enum ContextElement<'r> {
|
||||||
FailMatcherNode(FailMatcherNode<'r>),
|
FailMatcherNode(FailMatcherNode<'r>),
|
||||||
PreviousElementNode(PreviousElementNode<'r>),
|
PreviousElementNode(PreviousElementNode<'r>),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug)]
|
||||||
pub struct FailMatcherNode<'r> {
|
pub struct FailMatcherNode<'r> {
|
||||||
pub fail_matcher: ChainBehavior<'r>,
|
pub fail_matcher: ChainBehavior<'r>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug)]
|
||||||
pub struct PreviousElementNode<'r> {
|
pub struct PreviousElementNode<'r> {
|
||||||
pub element: Token<'r>,
|
pub element: Token<'r>,
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ use super::text_element_parser::paragraph;
|
|||||||
|
|
||||||
pub type Res<T, U> = IResult<T, U, VerboseError<T>>;
|
pub type Res<T, U> = IResult<T, U, VerboseError<T>>;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug)]
|
||||||
pub enum TextElement<'a> {
|
pub enum TextElement<'a> {
|
||||||
Span(Span<'a>),
|
Span(Span<'a>),
|
||||||
Space(Space<'a>),
|
Space(Space<'a>),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user