Clone issue.

This commit is contained in:
Tom Alexander
2022-12-03 23:53:52 -05:00
parent 96aca6b537
commit b20568c09e
5 changed files with 19 additions and 3 deletions

12
src/parser/token.rs Normal file
View File

@@ -0,0 +1,12 @@
use super::text::TextElement;
#[derive(Debug)]
pub enum Token<'a> {
TextElement(TextElement<'a>),
}
impl<'a> Into<Token<'a>> for TextElement<'a> {
fn into(self) -> Token<'a> {
Token::TextElement(self)
}
}