From 6165d6ccc03d0e04cfc3d760b4018e0eca52468e Mon Sep 17 00:00:00 2001 From: Rin Arakaki Date: Mon, 28 Aug 2023 20:04:46 +0900 Subject: [PATCH 1/6] Update Cargo.toml --- html5ever/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html5ever/Cargo.toml b/html5ever/Cargo.toml index 39e79992..971acb43 100644 --- a/html5ever/Cargo.toml +++ b/html5ever/Cargo.toml @@ -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" From 49e07de7b9fe9b455ddfb564992bf1194424c61c Mon Sep 17 00:00:00 2001 From: Rin Arakaki Date: Mon, 28 Aug 2023 20:05:33 +0900 Subject: [PATCH 2/6] Update Cargo.toml --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index fa54a86f..c857b21f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,3 +5,4 @@ members = [ "rcdom", "xml5ever" ] +resolver = "2" From dc2cc16915c444162cf96245dd58a231e57b99dd Mon Sep 17 00:00:00 2001 From: Rin Arakaki Date: Mon, 28 Aug 2023 20:05:57 +0900 Subject: [PATCH 3/6] Update Cargo.toml --- markup5ever/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markup5ever/Cargo.toml b/markup5ever/Cargo.toml index 68c2f3de..f3ac3cc6 100644 --- a/markup5ever/Cargo.toml +++ b/markup5ever/Cargo.toml @@ -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" From 8c3f5c3dfca70a9acc37b3b29fd97e64d8be6eba Mon Sep 17 00:00:00 2001 From: Rin Arakaki Date: Mon, 28 Aug 2023 20:06:20 +0900 Subject: [PATCH 4/6] Update Cargo.toml --- rcdom/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcdom/Cargo.toml b/rcdom/Cargo.toml index 309cbd81..ad15abe6 100644 --- a/rcdom/Cargo.toml +++ b/rcdom/Cargo.toml @@ -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] From 1a9a74871cf3d10e4d6c75d1b7fec1bfd015fe88 Mon Sep 17 00:00:00 2001 From: Rin Arakaki Date: Mon, 28 Aug 2023 20:06:37 +0900 Subject: [PATCH 5/6] Update Cargo.toml --- xml5ever/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml5ever/Cargo.toml b/xml5ever/Cargo.toml index a7a6f199..5517956c 100644 --- a/xml5ever/Cargo.toml +++ b/xml5ever/Cargo.toml @@ -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" From c6cd9d1451f01c7dbc6d8b3a90429258fcddd851 Mon Sep 17 00:00:00 2001 From: Rin Arakaki Date: Mon, 28 Aug 2023 20:15:38 +0900 Subject: [PATCH 6/6] Update mod.rs --- html5ever/src/tree_builder/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html5ever/src/tree_builder/mod.rs b/html5ever/src/tree_builder/mod.rs index 98b209fb..458e274b 100644 --- a/html5ever/src/tree_builder/mod.rs +++ b/html5ever/src/tree_builder/mod.rs @@ -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) { + pub fn trace_handles(&self, tracer: &dyn Tracer) { tracer.trace_handle(&self.doc_handle); for e in &self.open_elems { tracer.trace_handle(e);