diff options
Diffstat (limited to 'src/parser/event.rs')
-rw-r--r-- | src/parser/event.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/parser/event.rs b/src/parser/event.rs index 90348398e..1c0905a38 100644 --- a/src/parser/event.rs +++ b/src/parser/event.rs | |||
@@ -42,7 +42,7 @@ pub(crate) enum Event { | |||
42 | /// | | 42 | /// | |
43 | /// 'foo' | 43 | /// 'foo' |
44 | /// | 44 | /// |
45 | /// See also `CompleteMarker::precede`. | 45 | /// See also `CompletedMarker::precede`. |
46 | Start { | 46 | Start { |
47 | kind: SyntaxKind, | 47 | kind: SyntaxKind, |
48 | forward_parent: Option<u32>, | 48 | forward_parent: Option<u32>, |
@@ -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,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 message } => builder.error(ErrorMsg { | 143 | &Event::Error { ref msg } => builder.error(ErrorMsg { msg: msg.clone() }), |
144 | message: message.clone(), | ||
145 | }), | ||
146 | } | 144 | } |
147 | } | 145 | } |
148 | builder.finish() | 146 | builder.finish() |