aboutsummaryrefslogtreecommitdiff
path: root/src/default_emitter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/default_emitter.rs')
-rw-r--r--src/default_emitter.rs4
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);