diff options
| author | Fuwn <[email protected]> | 2023-04-17 23:17:50 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-17 23:17:50 -0700 |
| commit | 55167fafb1cd292fe3c42e5c4066a474d05be1f3 (patch) | |
| tree | 50a28cf249b0e59949899c53e54b3b3cdf4ca452 /src/modules/router | |
| parent | chore(amenadiel): remove unused feature flag (diff) | |
| download | locus-55167fafb1cd292fe3c42e5c4066a474d05be1f3.tar.xz locus-55167fafb1cd292fe3c42e5c4066a474d05be1f3.zip | |
style: rewrite formatter
Diffstat (limited to 'src/modules/router')
| -rw-r--r-- | src/modules/router/translate/module.rs | 16 |
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()), + ) + }) ), ); } |