aboutsummaryrefslogtreecommitdiff
path: root/src/ast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.rs')
-rw-r--r--src/ast.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast.rs b/src/ast.rs
index 7fc71a6..c8445ab 100644
--- a/src/ast.rs
+++ b/src/ast.rs
@@ -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
385impl std::fmt::Display for Type { 385impl 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"),