mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
chore(cargo): bump quick-xml from 0.31.0 to 0.35.0
Bumps [quick-xml](https://github.com/tafia/quick-xml) from 0.31.0 to 0.35.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.31.0...v0.35.0) --- updated-dependencies: - dependency-name: quick-xml dependency-type: direct:production update-type: version-update:semver-minor ... Co-authored-by: iequidoo <dgreshilov@gmail.com>
This commit is contained in:
committed by
iequidoo
parent
ba7eaca762
commit
5beb4a5f27
4
Cargo.lock
generated
4
Cargo.lock
generated
@@ -4830,9 +4830,9 @@ checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "quick-xml"
|
name = "quick-xml"
|
||||||
version = "0.31.0"
|
version = "0.35.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33"
|
checksum = "86e446ed58cef1bbfe847bc2fda0e2e4ea9f0e57b90c507d4781292590d72a4e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"memchr",
|
"memchr",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ percent-encoding = "2.3"
|
|||||||
parking_lot = "0.12"
|
parking_lot = "0.12"
|
||||||
pgp = { version = "0.11", default-features = false }
|
pgp = { version = "0.11", default-features = false }
|
||||||
qrcodegen = "1.7.0"
|
qrcodegen = "1.7.0"
|
||||||
quick-xml = "0.31"
|
quick-xml = "0.35"
|
||||||
quoted_printable = "0.5"
|
quoted_printable = "0.5"
|
||||||
rand = { workspace = true }
|
rand = { workspace = true }
|
||||||
regex = { workspace = true }
|
regex = { workspace = true }
|
||||||
|
|||||||
@@ -730,7 +730,7 @@ pub enum Error {
|
|||||||
|
|
||||||
#[error("XML error at position {position}: {error}")]
|
#[error("XML error at position {position}: {error}")]
|
||||||
InvalidXml {
|
InvalidXml {
|
||||||
position: usize,
|
position: u64,
|
||||||
#[source]
|
#[source]
|
||||||
error: quick_xml::Error,
|
error: quick_xml::Error,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ fn parse_server<B: BufRead>(
|
|||||||
})
|
})
|
||||||
.map(|typ| {
|
.map(|typ| {
|
||||||
typ.unwrap()
|
typ.unwrap()
|
||||||
.decode_and_unescape_value(reader)
|
.decode_and_unescape_value(reader.decoder())
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.to_lowercase()
|
.to_lowercase()
|
||||||
})
|
})
|
||||||
@@ -191,7 +191,7 @@ fn parse_xml_with_address(in_emailaddr: &str, xml_raw: &str) -> Result<MozAutoco
|
|||||||
};
|
};
|
||||||
|
|
||||||
let mut reader = quick_xml::Reader::from_str(xml_raw);
|
let mut reader = quick_xml::Reader::from_str(xml_raw);
|
||||||
reader.trim_text(true);
|
reader.config_mut().trim_text(true);
|
||||||
|
|
||||||
let moz_ac = parse_xml_reader(&mut reader).map_err(|error| Error::InvalidXml {
|
let moz_ac = parse_xml_reader(&mut reader).map_err(|error| Error::InvalidXml {
|
||||||
position: reader.buffer_position(),
|
position: reader.buffer_position(),
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ fn parse_xml_reader<B: BufRead>(
|
|||||||
|
|
||||||
fn parse_xml(xml_raw: &str) -> Result<ParsingResult, Error> {
|
fn parse_xml(xml_raw: &str) -> Result<ParsingResult, Error> {
|
||||||
let mut reader = quick_xml::Reader::from_str(xml_raw);
|
let mut reader = quick_xml::Reader::from_str(xml_raw);
|
||||||
reader.trim_text(true);
|
reader.config_mut().trim_text(true);
|
||||||
|
|
||||||
parse_xml_reader(&mut reader).map_err(|error| Error::InvalidXml {
|
parse_xml_reader(&mut reader).map_err(|error| Error::InvalidXml {
|
||||||
position: reader.buffer_position(),
|
position: reader.buffer_position(),
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ fn dehtml_quick_xml(buf: &str) -> (String, String) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let mut reader = quick_xml::Reader::from_str(buf);
|
let mut reader = quick_xml::Reader::from_str(buf);
|
||||||
reader.check_end_names(false);
|
reader.config_mut().check_end_names = false;
|
||||||
|
|
||||||
let mut buf = Vec::new();
|
let mut buf = Vec::new();
|
||||||
|
|
||||||
@@ -299,7 +299,7 @@ fn dehtml_starttag_cb<B: std::io::BufRead>(
|
|||||||
})
|
})
|
||||||
{
|
{
|
||||||
let href = href
|
let href = href
|
||||||
.decode_and_unescape_value(reader)
|
.decode_and_unescape_value(reader.decoder())
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.to_string();
|
.to_string();
|
||||||
|
|
||||||
@@ -348,7 +348,7 @@ fn maybe_push_tag(
|
|||||||
fn tag_contains_attr(event: &BytesStart, reader: &Reader<impl BufRead>, name: &str) -> bool {
|
fn tag_contains_attr(event: &BytesStart, reader: &Reader<impl BufRead>, name: &str) -> bool {
|
||||||
event.attributes().any(|r| {
|
event.attributes().any(|r| {
|
||||||
r.map(|a| {
|
r.map(|a| {
|
||||||
a.decode_and_unescape_value(reader)
|
a.decode_and_unescape_value(reader.decoder())
|
||||||
.map(|v| v == name)
|
.map(|v| v == name)
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
})
|
})
|
||||||
@@ -457,7 +457,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_dehtml_parse_href() {
|
fn test_dehtml_parse_href() {
|
||||||
let html = "<a href=url>text</a";
|
let html = "<a href=url>text</a>";
|
||||||
let plain = dehtml(html).unwrap().text;
|
let plain = dehtml(html).unwrap().text;
|
||||||
|
|
||||||
assert_eq!(plain, "[text](url)");
|
assert_eq!(plain, "[text](url)");
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ impl Kml {
|
|||||||
ensure!(to_parse.len() <= 1024 * 1024, "kml-file is too large");
|
ensure!(to_parse.len() <= 1024 * 1024, "kml-file is too large");
|
||||||
|
|
||||||
let mut reader = quick_xml::Reader::from_reader(to_parse);
|
let mut reader = quick_xml::Reader::from_reader(to_parse);
|
||||||
reader.trim_text(true);
|
reader.config_mut().trim_text(true);
|
||||||
|
|
||||||
let mut kml = Kml::new();
|
let mut kml = Kml::new();
|
||||||
kml.locations = Vec::with_capacity(100);
|
kml.locations = Vec::with_capacity(100);
|
||||||
@@ -226,7 +226,7 @@ impl Kml {
|
|||||||
== "addr"
|
== "addr"
|
||||||
}) {
|
}) {
|
||||||
self.addr = addr
|
self.addr = addr
|
||||||
.decode_and_unescape_value(reader)
|
.decode_and_unescape_value(reader.decoder())
|
||||||
.ok()
|
.ok()
|
||||||
.map(|a| a.into_owned());
|
.map(|a| a.into_owned());
|
||||||
}
|
}
|
||||||
@@ -256,7 +256,7 @@ impl Kml {
|
|||||||
}) {
|
}) {
|
||||||
let v = acc
|
let v = acc
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.decode_and_unescape_value(reader)
|
.decode_and_unescape_value(reader.decoder())
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|
||||||
self.curr.accuracy = v.trim().parse().unwrap_or_default();
|
self.curr.accuracy = v.trim().parse().unwrap_or_default();
|
||||||
|
|||||||
Reference in New Issue
Block a user