diff options
Diffstat (limited to 'src/parser/event.rs')
-rw-r--r-- | src/parser/event.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser/event.rs b/src/parser/event.rs index 90348398e..30fe5c6d7 100644 --- a/src/parser/event.rs +++ b/src/parser/event.rs | |||
@@ -61,7 +61,7 @@ pub(crate) enum Event { | |||
61 | }, | 61 | }, |
62 | 62 | ||
63 | Error { | 63 | Error { |
64 | message: String, | 64 | msg: String, |
65 | }, | 65 | }, |
66 | } | 66 | } |
67 | 67 | ||
@@ -140,8 +140,8 @@ pub(super) fn to_file(text: String, tokens: &[Token], events: Vec<Event>) -> Fil | |||
140 | } | 140 | } |
141 | builder.leaf(kind, len); | 141 | builder.leaf(kind, len); |
142 | } | 142 | } |
143 | &Event::Error { ref message } => builder.error(ErrorMsg { | 143 | &Event::Error { ref msg } => builder.error(ErrorMsg { |
144 | message: message.clone(), | 144 | msg: msg.clone(), |
145 | }), | 145 | }), |
146 | } | 146 | } |
147 | } | 147 | } |