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

Commit d2707dd

Browse files
committed
Reexport ElementWriter, because it is used in public API but its name was not accessible to users
That API was introduced in 7c9ba88 in tafia/quick-xml#274
1 parent 0a0469e commit d2707dd

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
from the attribute and element names and attribute values
2020
- fix: allow to deserialize `unit`s from text and CDATA content.
2121
`DeError::InvalidUnit` variant is removed, because after fix it is no longer used
22+
- fix: `ElementWriter`, introduced in [#274](https://github.com/tafia/quick-xml/pull/274)
23+
(0.23.0-alpha2) now available to end users
2224

2325
## 0.23.0-alpha3
2426

src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,5 @@ mod writer;
151151
#[cfg(feature = "serialize")]
152152
pub use crate::errors::serialize::DeError;
153153
pub use crate::errors::{Error, Result};
154-
pub use crate::{reader::Reader, writer::Writer};
154+
pub use crate::reader::Reader;
155+
pub use crate::writer::{ElementWriter, Writer};

src/writer.rs

+2
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ impl<W: Write> Writer<W> {
220220
}
221221
}
222222

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

0 commit comments

Comments
 (0)