aboutsummaryrefslogtreecommitdiff
path: root/src/xml.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml.rs')
-rw-r--r--src/xml.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/xml.rs b/src/xml.rs
index 7bc40e6..dc60a49 100644
--- a/src/xml.rs
+++ b/src/xml.rs
@@ -25,11 +25,7 @@ pub struct Item {
fields: HashMap<String, String>,
}
impl Item {
- pub fn builder() -> Self {
- Self {
- fields: HashMap::new(),
- }
- }
+ pub fn builder() -> Self { Self { fields: HashMap::new() } }
pub fn add_field(&mut self, key: &str, value: &str) -> &mut Self {
self.fields.insert(key.to_string(), value.to_string());