aboutsummaryrefslogtreecommitdiff
path: root/src/meta.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-18 06:24:50 +0000
committerFuwn <[email protected]>2023-05-18 06:24:50 +0000
commit56f53ddca0135e17708af585bfb50144d6836f55 (patch)
tree1d5beea4c266a7d9bdd50fe4750540d618b0b160 /src/meta.rs
parentfix: improve macro hygiene (diff)
downloadgerm-56f53ddca0135e17708af585bfb50144d6836f55.tar.xz
germ-56f53ddca0135e17708af585bfb50144d6836f55.zip
fmt: update rustfmt.toml
Diffstat (limited to 'src/meta.rs')
-rw-r--r--src/meta.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/meta.rs b/src/meta.rs
index 2a210a0..8962d7f 100644
--- a/src/meta.rs
+++ b/src/meta.rs
@@ -89,9 +89,8 @@ impl Meta {
let mut parameters = HashMap::new();
for parameter in metas {
- let key_value = parameter
- .trim_start()
- .split_at(parameter.find('=').unwrap_or(0));
+ let key_value =
+ parameter.trim_start().split_at(parameter.find('=').unwrap_or(0));
parameters.insert(
key_value.0.to_string().replace('=', ""),
@@ -99,10 +98,7 @@ impl Meta {
);
}
- Self {
- mime,
- parameters,
- }
+ Self { mime, parameters }
}
/// Obtain non-mutable access to the mime of the `Meta`