From 30f80c85b9ed4cb6a4a633e1bc7a3dbd142f8547 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 5 Mar 2024 05:59:27 -0800 Subject: format: new rustfmt.toml --- src/xml.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/xml.rs') 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, } 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()); -- cgit v1.2.3