diff options
| author | Fuwn <[email protected]> | 2024-03-05 05:59:27 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-03-05 05:59:27 -0800 |
| commit | 30f80c85b9ed4cb6a4a633e1bc7a3dbd142f8547 (patch) | |
| tree | 53433b0acade861f6d5e8f8a308d6208199d5ce2 /src/xml.rs | |
| parent | ci(earthly): switch to earthly from docker (diff) | |
| download | locus-30f80c85b9ed4cb6a4a633e1bc7a3dbd142f8547.tar.xz locus-30f80c85b9ed4cb6a4a633e1bc7a3dbd142f8547.zip | |
format: new rustfmt.toml
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()); |