Skip to content

Commit

Permalink
Upgrade to rust edition 2021 (#509)
Browse files Browse the repository at this point in the history
* Update Cargo.toml

* Update Cargo.toml

* Update Cargo.toml

* Update Cargo.toml

* Update Cargo.toml

* Update mod.rs
  • Loading branch information
rinarakaki authored Sep 6, 2023
1 parent 9ef751b commit c044930
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
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

0 comments on commit c044930

Please sign in to comment.