Upgrade html5gum

This commit is contained in:
Jonas Platte 2024-11-06 20:09:54 +01:00 committed by strawberry
parent 90022bd57c
commit f47733b49d
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ default = ["dep:semver", "dep:toml_edit"]
[dependencies]
clap = { version = "4.1.8", features = ["derive"] }
html5gum = "0.5.2"
html5gum = "0.7.0"
reqwest = { version = "0.12.4", features = ["blocking", "json"] }
semver = { version = "1.0.6", features = ["serde"], optional = true }
serde = { workspace = true }

View File

@ -216,7 +216,7 @@ fn get_page_ids(url: &str) -> Result<HashMap<String, HasDuplicates>> {
let html = page.text()?;
let mut ids = HashMap::new();
for token in Tokenizer::new(&html).infallible() {
for Ok(token) in Tokenizer::new(&html) {
let Token::StartTag(tag) = token else {
continue;
};