diff options
Diffstat (limited to 'src/xml.rs')
| -rw-r--r-- | src/xml.rs | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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()); |