Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
Reexport ElementWriter, because it is used in public API but its name…
Browse files Browse the repository at this point in the history
… was not accessible to users

That API was introduced in 7c9ba88 in tafia/quick-xml#274
  • Loading branch information
Mingun committed May 2, 2022
1 parent 0a0469e commit d2707dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog.md
Expand Up @@ -19,6 +19,8 @@
from the attribute and element names and attribute values
- fix: allow to deserialize `unit`s from text and CDATA content.
`DeError::InvalidUnit` variant is removed, because after fix it is no longer used
- fix: `ElementWriter`, introduced in [#274](https://github.com/tafia/quick-xml/pull/274)
(0.23.0-alpha2) now available to end users

## 0.23.0-alpha3

Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Expand Up @@ -151,4 +151,5 @@ mod writer;
#[cfg(feature = "serialize")]
pub use crate::errors::serialize::DeError;
pub use crate::errors::{Error, Result};
pub use crate::{reader::Reader, writer::Writer};
pub use crate::reader::Reader;
pub use crate::writer::{ElementWriter, Writer};
2 changes: 2 additions & 0 deletions src/writer.rs
Expand Up @@ -220,6 +220,8 @@ impl<W: Write> Writer<W> {
}
}

/// A struct to write an element. Contains methods to add attributes and inner
/// elements to the element
pub struct ElementWriter<'a, W: Write> {
writer: &'a mut Writer<W>,
start_tag: BytesStart<'a>,
Expand Down

0 comments on commit d2707dd

Please sign in to comment.