Derive Debug and Clone for tokens and parser state
This commit is contained in:
parent
312901ddf6
commit
8d204503a8
12 changed files with 18 additions and 13 deletions
|
|
@ -10,7 +10,7 @@ use crate::{
|
|||
|
||||
use std::fmt::Display;
|
||||
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
pub struct Header {
|
||||
open: Option<bool>,
|
||||
level: Level,
|
||||
|
|
@ -112,7 +112,7 @@ impl Parseable for Header {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
pub enum Level {
|
||||
One,
|
||||
Two,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue