Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to rust edition 2021 #509

Merged
merged 6 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ members = [
"rcdom",
"xml5ever"
]
resolver = "2"
2 changes: 1 addition & 1 deletion html5ever/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "High-performance browser-grade HTML5 parser"
documentation = "https://docs.rs/html5ever"
build = "build.rs"
categories = [ "parser-implementations", "web-programming" ]
edition = "2018"
edition = "2021"

[dependencies]
log = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion html5ever/src/tree_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ where

/// Call the `Tracer`'s `trace_handle` method on every `Handle` in the tree builder's
/// internal state. This is intended to support garbage-collected DOMs.
pub fn trace_handles(&self, tracer: &Tracer<Handle = Handle>) {
pub fn trace_handles(&self, tracer: &dyn Tracer<Handle = Handle>) {
tracer.trace_handle(&self.doc_handle);
for e in &self.open_elems {
tracer.trace_handle(e);
Expand Down
2 changes: 1 addition & 1 deletion markup5ever/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "Common code for xml5ever and html5ever"
documentation = "https://docs.rs/markup5ever"
build = "build.rs"
categories = [ "parser-implementations", "web-programming" ]
edition = "2018"
edition = "2021"

[lib]
path = "lib.rs"
Expand Down
2 changes: 1 addition & 1 deletion rcdom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "Basic, unsupported DOM structure for use by tests in html5ever/xm
readme = "README.md"
documentation = "https://docs.rs/markup5ever_rcdom"
categories = [ "parser-implementations", "web-programming" ]
edition = "2018"
edition = "2021"
publish = false

[lib]
Expand Down
2 changes: 1 addition & 1 deletion xml5ever/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readme = "README.md"
keywords = ["xml", "xml5", "parser", "parsing"]
exclude = ["xml5lib-tests/*"]
categories = [ "parser-implementations", "web-programming" ]
edition = "2018"
edition = "2021"

[dependencies]
log = "0.4"
Expand Down