diff options
Diffstat (limited to 'src/parser/event.rs')
-rw-r--r-- | src/parser/event.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser/event.rs b/src/parser/event.rs index 4af16d783..1c0905a38 100644 --- a/src/parser/event.rs +++ b/src/parser/event.rs | |||
@@ -140,9 +140,7 @@ 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 msg } => builder.error(ErrorMsg { | 143 | &Event::Error { ref msg } => builder.error(ErrorMsg { msg: msg.clone() }), |
144 | msg: msg.clone(), | ||
145 | }), | ||
146 | } | 144 | } |
147 | } | 145 | } |
148 | builder.finish() | 146 | builder.finish() |