aboutsummaryrefslogtreecommitdiff
path: root/src/writer/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer/config.rs')
-rw-r--r--src/writer/config.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/writer/config.rs b/src/writer/config.rs
index ebabf18..c7841bc 100644
--- a/src/writer/config.rs
+++ b/src/writer/config.rs
@@ -1,9 +1,8 @@
//! Contains emitter configuration structure.
-use std::io::Write;
use std::borrow::Cow;
-
-use writer::EventWriter;
+use std::io::Write;
+use crate::writer::EventWriter;
/// Emitter configuration structure.
///
@@ -98,10 +97,11 @@ impl EmitterConfig {
/// .normalize_empty_elements(false);
/// ```
#[inline]
+ #[must_use]
pub fn new() -> EmitterConfig {
EmitterConfig {
line_separator: "\n".into(),
- indent_string: " ".into(), // two spaces
+ indent_string: " ".into(), // two spaces
perform_indent: false,
perform_escaping: true,
write_document_declaration: true,
@@ -109,7 +109,7 @@ impl EmitterConfig {
cdata_to_characters: false,
keep_element_names_stack: true,
autopad_comments: true,
- pad_self_closing: true
+ pad_self_closing: true,
}
}