Skip to content

Commit 844aa1f

Browse files
authoredFeb 4, 2025··
Publish html5ever 0.29.1 and markup5ever 0.14.1. (#572)
* Publish html5ever 0.29.1 and markup5ever 0.14.1. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update MSRV to 1.70.0. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
1 parent eda3030 commit 844aa1f

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed
 

‎.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install stable toolchain
4848
run: |
4949
rustup set profile minimal
50-
rustup override set 1.65.0
50+
rustup override set 1.70.0
5151
5252
- run: cargo check --lib --all-features
5353

‎Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ members = [
99

1010
resolver = "2"
1111

12+
[workspace.package]
13+
rust-version = "1.70.0"
14+
1215
[workspace.dependencies]
1316
match_token = { path = "match_token" }
1417

‎html5ever/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "html5ever"
3-
version = "0.29.0"
3+
version = "0.29.1"
44
authors = [ "The html5ever Project Developers" ]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/servo/html5ever"
@@ -10,6 +10,7 @@ categories = [ "parser-implementations", "web-programming" ]
1010
keywords = ["html", "html5", "parser", "parsing"]
1111
edition = "2021"
1212
readme = "../README.md"
13+
rust-version.workspace = true
1314

1415
[features]
1516
trace_tokenizer = []

‎markup5ever/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "markup5ever"
3-
version = "0.14.0"
3+
version = "0.14.1"
44
authors = [ "The html5ever Project Developers" ]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/servo/html5ever"
@@ -9,6 +9,7 @@ documentation = "https://docs.rs/markup5ever"
99
build = "build.rs"
1010
categories = [ "parser-implementations", "web-programming" ]
1111
edition = "2021"
12+
rust-version.workspace = true
1213

1314
[lib]
1415
path = "lib.rs"

‎rcdom/tests/html-tokenizer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ fn mk_tests(tests: &mut Vec<Test>, filename: &str, js: &Value) {
377377
// the input and output.
378378
if obj
379379
.get(&"doubleEscaped".to_string())
380-
.map_or(false, |j| j.get_bool())
380+
.is_some_and(|j| j.get_bool())
381381
{
382382
match unescape(&input) {
383383
None => return,

‎xml5ever/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ keywords = ["xml", "xml5", "parser", "parsing"]
1212
exclude = ["xml5lib-tests/*"]
1313
categories = ["parser-implementations", "web-programming"]
1414
edition = "2021"
15+
rust-version.workspace = true
1516

1617
[features]
1718
trace_tokenizer = []

‎xml5ever/src/tokenizer/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn process_qname(tag_name: StrTendril) -> QualName {
6262
// a:b
6363
// Since StrTendril are UTF-8, we know that minimal size in bytes must be
6464
// three bytes minimum.
65-
let split = if (*tag_name).as_bytes().len() < 3 {
65+
let split = if (*tag_name).len() < 3 {
6666
None
6767
} else {
6868
QualNameTokenizer::new((*tag_name).as_bytes()).run()
@@ -71,7 +71,7 @@ fn process_qname(tag_name: StrTendril) -> QualName {
7171
match split {
7272
None => QualName::new(None, ns!(), LocalName::from(&*tag_name)),
7373
Some(col) => {
74-
let len = (*tag_name).as_bytes().len() as u32;
74+
let len = (*tag_name).len() as u32;
7575
let prefix = tag_name.subtendril(0, col);
7676
let local = tag_name.subtendril(col + 1, len - col - 1);
7777
let ns = ns!(); // Actual namespace URL set in XmlTreeBuilder::bind_qname

0 commit comments

Comments
 (0)