Going to try removing clone from the tokens.

This commit is contained in:
Tom Alexander 2022-12-03 23:57:39 -05:00
parent b20568c09e
commit 2db400198e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 4 additions and 4 deletions

View File

@ -69,18 +69,18 @@ impl<'r> ContextTree<'r> {
}
}
#[derive(Debug, Clone)]
#[derive(Debug)]
pub enum ContextElement<'r> {
FailMatcherNode(FailMatcherNode<'r>),
PreviousElementNode(PreviousElementNode<'r>),
}
#[derive(Debug, Clone)]
#[derive(Debug)]
pub struct FailMatcherNode<'r> {
pub fail_matcher: ChainBehavior<'r>,
}
#[derive(Debug, Clone)]
#[derive(Debug)]
pub struct PreviousElementNode<'r> {
pub element: Token<'r>,
}

View File

@ -33,7 +33,7 @@ use super::text_element_parser::paragraph;
pub type Res<T, U> = IResult<T, U, VerboseError<T>>;
#[derive(Debug, Clone)]
#[derive(Debug)]
pub enum TextElement<'a> {
Span(Span<'a>),
Space(Space<'a>),