diff --git a/lychee-lib/src/extract/html/html5gum.rs b/lychee-lib/src/extract/html/html5gum.rs
index d28007af00..7fc03f7c18 100644
--- a/lychee-lib/src/extract/html/html5gum.rs
+++ b/lychee-lib/src/extract/html/html5gum.rs
@@ -345,7 +345,7 @@ impl Emitter for &mut LinkExtractor {
/// Extract unparsed URL strings from an HTML string.
pub(crate) fn extract_html(buf: &str, include_verbatim: bool) -> Vec {
let mut extractor = LinkExtractor::new(include_verbatim);
- let mut tokenizer = Tokenizer::new_with_emitter(buf, &mut extractor).infallible();
+ let mut tokenizer = Tokenizer::new_with_emitter(buf, &mut extractor);
assert!(tokenizer.next().is_none());
extractor
.links
@@ -357,7 +357,7 @@ pub(crate) fn extract_html(buf: &str, include_verbatim: bool) -> Vec {
/// Extract fragments from id attributes within a HTML string.
pub(crate) fn extract_html_fragments(buf: &str) -> HashSet {
let mut extractor = LinkExtractor::new(true);
- let mut tokenizer = Tokenizer::new_with_emitter(buf, &mut extractor).infallible();
+ let mut tokenizer = Tokenizer::new_with_emitter(buf, &mut extractor);
assert!(tokenizer.next().is_none());
extractor.fragments
}