mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Format code
This commit is contained in:
parent
56411c6547
commit
fc6511a361
13 changed files with 42 additions and 48 deletions
|
|
@ -19,8 +19,7 @@ pub fn system_locale() -> Locale {
|
|||
pub fn all_locale_in_locales(locales: Vec<Locale>) -> Vec<Locale> {
|
||||
if locales
|
||||
.iter()
|
||||
.find(|l| l.to_string().to_lowercase().trim() == "all")
|
||||
.is_some()
|
||||
.any(|l| l.to_string().to_lowercase().trim() == "all")
|
||||
{
|
||||
Locale::all()
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue