Skip to content

Commit

Permalink
build(deps): bump quick-xml in the cargo-minor group
Browse files Browse the repository at this point in the history
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](tafia/quick-xml@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] <[email protected]>
  • Loading branch information
dependabot[bot] authored and torokati44 committed Oct 28, 2024
1 parent 24baf15 commit 46704ea
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
13 changes: 11 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion core/src/html/text_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions core/src/xml/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 46704ea

Please sign in to comment.