aboutsummaryrefslogtreecommitdiff
path: root/src/xml.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-03-05 05:59:27 -0800
committerFuwn <[email protected]>2024-03-05 05:59:27 -0800
commit30f80c85b9ed4cb6a4a633e1bc7a3dbd142f8547 (patch)
tree53433b0acade861f6d5e8f8a308d6208199d5ce2 /src/xml.rs
parentci(earthly): switch to earthly from docker (diff)
downloadlocus-30f80c85b9ed4cb6a4a633e1bc7a3dbd142f8547.tar.xz
locus-30f80c85b9ed4cb6a4a633e1bc7a3dbd142f8547.zip
format: new rustfmt.toml
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());