aboutsummaryrefslogtreecommitdiff
path: root/src/modules/router
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-17 23:17:50 -0700
committerFuwn <[email protected]>2023-04-17 23:17:50 -0700
commit55167fafb1cd292fe3c42e5c4066a474d05be1f3 (patch)
tree50a28cf249b0e59949899c53e54b3b3cdf4ca452 /src/modules/router
parentchore(amenadiel): remove unused feature flag (diff)
downloadlocus-55167fafb1cd292fe3c42e5c4066a474d05be1f3.tar.xz
locus-55167fafb1cd292fe3c42e5c4066a474d05be1f3.zip
style: rewrite formatter
Diffstat (limited to 'src/modules/router')
-rw-r--r--src/modules/router/translate/module.rs16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/modules/router/translate/module.rs b/src/modules/router/translate/module.rs
index f6b2367..bb1e6a4 100644
--- a/src/modules/router/translate/module.rs
+++ b/src/modules/router/translate/module.rs
@@ -52,15 +52,13 @@ where
format!(
"=> {to}?translate={}{}",
language.as_ref(),
- text.clone().map_or_else(
- String::new,
- |text| {
- format!(
- " {}",
- translate(&text, language.as_ref()).map_or(text, |text| text.text()),
- )
- }
- )
+ text.clone().map_or_else(String::new, |text| {
+ format!(
+ " {}",
+ translate(&text, language.as_ref())
+ .map_or(text, |text| text.text()),
+ )
+ })
),
);
}