diff options
author | Greg Brown <gmb60@cam.ac.uk> | 2021-01-19 22:37:35 +0000 |
---|---|---|
committer | Greg Brown <gmb60@cam.ac.uk> | 2021-01-19 22:38:45 +0000 |
commit | 8f7a17e0f48e3586fae619be08351c6761b07596 (patch) | |
tree | 0fe2c78b93cdfcbe7b6621c272c8b73eacfc53c4 /src/chomp/ast | |
parent | f6916209d57682493288ab42e695204b95d0ba23 (diff) |
Remove usage of `extra-traits` feature of syn.
Diffstat (limited to 'src/chomp/ast')
-rw-r--r-- | src/chomp/ast/mod.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/chomp/ast/mod.rs b/src/chomp/ast/mod.rs index 9a159e4..e4ed2fc 100644 --- a/src/chomp/ast/mod.rs +++ b/src/chomp/ast/mod.rs @@ -1,7 +1,6 @@ use std::fmt::{self, Display}; use proc_macro2::Span; -use syn::Token; use super::Name; @@ -16,9 +15,9 @@ pub type Literal = String; #[derive(Clone, Debug)] pub struct Cat { pub first: Box<NamedExpression>, - pub punct: Option<Token![.]>, + pub punct: Option<Span>, pub second: Box<NamedExpression>, - pub rest: Vec<(Option<Token![.]>, NamedExpression)>, + pub rest: Vec<(Option<Span>, NamedExpression)>, } impl Display for Cat { @@ -49,9 +48,9 @@ impl Eq for Cat {} #[derive(Clone, Debug)] pub struct Alt { pub first: Box<NamedExpression>, - pub punct: Option<Token![|]>, + pub punct: Option<Span>, pub second: Box<NamedExpression>, - pub rest: Vec<(Option<Token![|]>, NamedExpression)> + pub rest: Vec<(Option<Span>, NamedExpression)> } impl Display for Alt { |