Unverified Commit f2202a40 authored by dependabot[bot]'s avatar dependabot[bot] Committed by GitHub
Browse files

build(deps): update quick-xml requirement from 0.36.2 to 0.37.0 in the dependencies group (#211)

* build(deps): update quick-xml requirement in the dependencies group

Updates the requirements on [quick-xml](https://github.com/tafia/quick-xml) to permit the latest version.

Updates `quick-xml` 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
  dependency-group: dependencies
...

Signed-off-by: default avatardependabot[bot] <support@github.com>

* fix

---------

Signed-off-by: default avatardependabot[bot] <support@github.com>
Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: default avatarNugine <nugine@foxmail.com>
parent e642bf1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ nom = "7.1.3"
nugine-rust-utils = "0.3.1"
numeric_cast = "0.2.1"
pin-project-lite = "0.2.14"
quick-xml = { version = "0.36.2", features = ["serialize"] }
quick-xml = { version = "0.37.0", features = ["serialize"] }
serde = { version = "1.0.210", features = ["derive"] }
serde_urlencoded = "0.7.1"
sha1 = "0.11.0-pre.4"
+2 −7
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ pub struct Serializer<W: Write> {
#[error("XML serialization error: {inner}")]
pub struct SerError {
    /// inner error
    inner: quick_xml::Error,
    inner: std::io::Error,
}

/// XML serialization result
@@ -56,7 +56,7 @@ impl<W: Write> Serializer<W> {

    /// Writes an event
    fn event(&mut self, event: Event<'_>) -> SerResult {
        self.inner.write_event(event).map_err(wrap_xml)
        self.inner.write_event(event).map_err(|err| SerError { inner: err })
    }

    /// Writes an element
@@ -169,11 +169,6 @@ impl SerializeContent for dto::Event {
    }
}

/// wrap error
const fn wrap_xml(inner: quick_xml::Error) -> SerError {
    SerError { inner }
}

/// start event
fn start(name: &str) -> Event<'_> {
    Event::Start(BytesStart::new(name))