Rename MemoryHoleReporter to NullReporter

This commit is contained in:
Simon Sapin 2017-04-24 07:56:50 +02:00
parent 733820583e
commit de1fe51dc6
3 changed files with 19 additions and 18 deletions

View file

@ -42,3 +42,17 @@ impl ParseErrorReporter for StdoutErrorReporter {
}
}
}
/// Error reporter which silently forgets errors
pub struct NullReporter;
impl ParseErrorReporter for NullReporter {
fn report_error(&self,
_: &mut Parser,
_: SourcePosition,
_: &str,
_: &UrlExtraData,
_: u64) {
// do nothing
}
}