diff options
Diffstat (limited to 'src/ast.rs')
-rw-r--r-- | src/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,7 +63,7 @@ impl std::fmt::Display for Pattern { | |||
63 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | 63 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
64 | match self { | 64 | match self { |
65 | Self::Begin => write!(f, "BEGIN"), | 65 | Self::Begin => write!(f, "BEGIN"), |
66 | Self::End=> write!(f, "END"), | 66 | Self::End => write!(f, "END"), |
67 | Self::Tree { modifier, matcher } => write!(f, "{modifier} {matcher}"), | 67 | Self::Tree { modifier, matcher } => write!(f, "{modifier} {matcher}"), |
68 | } | 68 | } |
69 | } | 69 | } |
@@ -383,7 +383,7 @@ pub enum Type { | |||
383 | } | 383 | } |
384 | 384 | ||
385 | impl std::fmt::Display for Type { | 385 | impl std::fmt::Display for Type { |
386 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | 386 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
387 | match self { | 387 | match self { |
388 | Self::Unit => write!(f, "unit"), | 388 | Self::Unit => write!(f, "unit"), |
389 | Self::Integer => write!(f, "int"), | 389 | Self::Integer => write!(f, "int"), |