From 46704ea9fde8cd97aafdb0556e0faf6ea3b182db Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:11:04 +0000 Subject: [PATCH] build(deps): bump quick-xml in the cargo-minor group Bumps the cargo-minor group with 1 update: [quick-xml](https://github.com/tafia/quick-xml). Updates `quick-xml` from 0.36.2 to 0.37.0 - [Release notes](https://github.com/tafia/quick-xml/releases) - [Changelog](https://github.com/tafia/quick-xml/blob/master/Changelog.md) - [Commits](https://github.com/tafia/quick-xml/compare/v0.36.2...v0.37.0) --- updated-dependencies: - dependency-name: quick-xml dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 13 +++++++++++-- core/Cargo.toml | 2 +- core/src/html/text_format.rs | 2 +- core/src/xml/tree.rs | 4 ++-- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9eb689b98a17..98c6ed4ebbf4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3943,6 +3943,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "quick-xml" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffbfb3ddf5364c9cfcd65549a1e7b801d0e8d1b14c1a1590a6408aa93cfbfa84" +dependencies = [ + "memchr", +] + [[package]] name = "quinn" version = "0.11.5" @@ -4306,7 +4315,7 @@ dependencies = [ "num-traits", "percent-encoding", "png", - "quick-xml", + "quick-xml 0.37.0", "rand", "realfft", "regress", @@ -6121,7 +6130,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "597f2001b2e5fc1121e3d5b9791d3e78f05ba6bfa4641053846248e3a13661c3" dependencies = [ "proc-macro2", - "quick-xml", + "quick-xml 0.36.2", "quote", ] diff --git a/core/Cargo.toml b/core/Cargo.toml index b4b7ae9d7be3..a3a59ca72629 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -29,7 +29,7 @@ bitflags = { workspace = true } smallvec = { version = "1.13.2", features = ["union"] } num-traits = { workspace = true } num-derive = { workspace = true } -quick-xml = "0.36.2" +quick-xml = "0.37.0" downcast-rs = "1.2.1" url = { workspace = true } weak-table = "0.3.2" diff --git a/core/src/html/text_format.rs b/core/src/html/text_format.rs index 072f1e9c42d9..e038d772ba0a 100644 --- a/core/src/html/text_format.rs +++ b/core/src/html/text_format.rs @@ -1701,7 +1701,7 @@ impl<'a> FormatState<'a> { } let encoded = line.to_utf8_lossy(); - let escaped = escape(&encoded); + let escaped = escape(&*encoded); if let Cow::Borrowed(_) = &encoded { // Optimization: if the utf8 conversion was a no-op, we know the text is ASCII; diff --git a/core/src/xml/tree.rs b/core/src/xml/tree.rs index 0282f3c5913e..101363e77446 100644 --- a/core/src/xml/tree.rs +++ b/core/src/xml/tree.rs @@ -491,7 +491,7 @@ impl<'gc> XmlNode<'gc> { for (key, value) in self.attributes().own_properties() { let value = value.coerce_to_string(activation)?; let value = value.to_utf8_lossy(); - let value = escape(&value); + let value = escape(&*value); result.push_byte(b' '); result.push_str(&key); @@ -519,7 +519,7 @@ impl<'gc> XmlNode<'gc> { } else { let value = self.0.read().node_value.unwrap(); let value = value.to_utf8_lossy(); - let value = escape(&value); + let value = escape(&*value); result.push_utf8(&value); }