diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-27 17:28:20 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-28 07:26:44 +0200 |
commit | 202b5782ebc9661420623878898bc06ce861051b (patch) | |
tree | b91af41713466a2a5f48bf8c327e42638fa0386e /src/default_emitter.rs | |
parent | 9c089bb1eb0fa1b17d0804ff3ee8ed83d6fc77e6 (diff) |
chore: move emit_error method up
Diffstat (limited to 'src/default_emitter.rs')
-rw-r--r-- | src/default_emitter.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/default_emitter.rs b/src/default_emitter.rs index 7ef96ec..c5eb081 100644 --- a/src/default_emitter.rs +++ b/src/default_emitter.rs @@ -42,14 +42,14 @@ impl<O> Iterator for DefaultEmitter<O> { } impl<O: Offset> Emitter<O> for DefaultEmitter<O> { - fn emit_eof(&mut self) { - self.flush_current_characters(); - } - fn emit_error(&mut self, error: Error, span: Range<O>) { self.push_error(error, span); } + fn emit_eof(&mut self) { + self.flush_current_characters(); + } + fn emit_string(&mut self, s: &str) { self.current_characters.push_str(s); } |