diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-28 07:10:57 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-28 07:26:44 +0200 |
commit | 7493f019cd7991c336324711af2247eda3851ec5 (patch) | |
tree | 89f504c38ae25091ecf15919c5ca4d662e39f4c3 /src/default_emitter.rs | |
parent | 202b5782ebc9661420623878898bc06ce861051b (diff) |
break!: rename Emitter::emit_error to report_error
Diffstat (limited to 'src/default_emitter.rs')
-rw-r--r-- | src/default_emitter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/default_emitter.rs b/src/default_emitter.rs index c5eb081..16766c8 100644 --- a/src/default_emitter.rs +++ b/src/default_emitter.rs @@ -42,7 +42,7 @@ impl<O> Iterator for DefaultEmitter<O> { } impl<O: Offset> Emitter<O> for DefaultEmitter<O> { - fn emit_error(&mut self, error: Error, span: Range<O>) { + fn report_error(&mut self, error: Error, span: Range<O>) { self.push_error(error, span); } @@ -126,7 +126,7 @@ impl<O: Offset> Emitter<O> for DefaultEmitter<O> { *self_closing = true; } Token::EndTag(_) => { - self.emit_error(Error::EndTagWithTrailingSolidus, slash_span); + self.report_error(Error::EndTagWithTrailingSolidus, slash_span); } _ => { debug_assert!(false); |