Clone issue.
This commit is contained in:
12
src/parser/token.rs
Normal file
12
src/parser/token.rs
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user