diff --git a/fake/src/locales/pt_br.rs b/fake/src/locales/pt_br.rs index 44b1fdd..3c457a4 100644 --- a/fake/src/locales/pt_br.rs +++ b/fake/src/locales/pt_br.rs @@ -667,26 +667,16 @@ impl Data for PT_BR { "yahoo.com.br", ]; - const PHONE_NUMBER_FORMATS: &'static [&'static str] = &[ - "(^#) 2###-####", - "(^#) 3###-####", - "(^#) 4###-####", - ]; - const PHONE_CELL_NUMBER_FORMATS: &'static [&'static str] = &[ - "(^#) 9####-####", - ]; + const PHONE_NUMBER_FORMATS: &'static [&'static str] = + &["(^#) 2###-####", "(^#) 3###-####", "(^#) 4###-####"]; + const PHONE_CELL_NUMBER_FORMATS: &'static [&'static str] = &["(^#) 9####-####"]; const TIME_DEFAULT_DATE_FORMAT: &'static str = "[day]/[month]/[year]"; - const TIME_DEFAULT_DATETIME_FORMAT: &'static str = "[day]/[month]/[year]T[hour]:[minute]:[second][offset_hour sign:mandatory][offset_minute]"; + const TIME_DEFAULT_DATETIME_FORMAT: &'static str = + "[day]/[month]/[year]T[hour]:[minute]:[second][offset_hour sign:mandatory][offset_minute]"; - const INTERNET_DOMAIN_SUFFIX: &'static [&'static str] = &[ - "app.br", - "art.br", - "com.br", - "dev.br", - "net.br", - "org.br", - ]; + const INTERNET_DOMAIN_SUFFIX: &'static [&'static str] = + &["app.br", "art.br", "com.br", "dev.br", "net.br", "org.br"]; const ADDRESS_STATE: &'static [&'static str] = &[ "Acre", @@ -718,50 +708,14 @@ impl Data for PT_BR { "Tocantins", ]; const ADDRESS_STATE_ABBR: &'static [&'static str] = &[ - "AC", - "AL", - "AP", - "AM", - "BA", - "CE", - "DF", - "ES", - "GO", - "MA", - "MT", - "MS", - "MG", - "PA", - "PB", - "PR", - "PE", - "PI", - "RJ", - "RN", - "RS", - "RO", - "RR", - "SC", - "SP", - "SE", - "TO", + "AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", + "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO", ]; - const ADDRESS_STREET_SUFFIX: &'static [&'static str] = &[ - "Av.", - "Avenida", - "R.", - "Rua", - "Travessa", - "Largo", - ]; + const ADDRESS_STREET_SUFFIX: &'static [&'static str] = + &["Av.", "Avenida", "R.", "Rua", "Travessa", "Largo"]; const ADDRESS_STREET_TPL: &'static str = "{StreetSuffix} {StreetName}"; const ADDRESS_POSTCODE_FORMATS: &'static [&'static str] = &["#####-###"]; - const COMPANY_SUFFIX: &'static [&'static str] = &[ - "e Filhos", - "e Associados", - "Ltda.", - "S.A.", - ]; + const COMPANY_SUFFIX: &'static [&'static str] = &["e Filhos", "e Associados", "Ltda.", "S.A."]; } diff --git a/fake/tests/determinism.rs b/fake/tests/determinism.rs index 987332b..14be5f1 100644 --- a/fake/tests/determinism.rs +++ b/fake/tests/determinism.rs @@ -116,7 +116,7 @@ mod chrono { check_determinism! { l10d Date; String, fake_date_en, fake_date_fr, fake_date_cn, fake_date_tw, fake_date_jp, fake_date_br } check_determinism! { l10d DateTime; String, fake_date_time_en, fake_date_time_fr, fake_date_time_cn, fake_date_time_tw, fake_date_time_jp, fake_date_time_br } - check_determinism! { l10d DateTimeAfter; String, fake_date_time_after_en, fake_date_time_after_fr, fake_date_time_after_cn, fake_date_time_after_tw, fake_date_time_after_jp,, fake_date_time_after_br, lo() } + check_determinism! { l10d DateTimeAfter; String, fake_date_time_after_en, fake_date_time_after_fr, fake_date_time_after_cn, fake_date_time_after_tw, fake_date_time_after_jp, fake_date_time_after_br, lo() } check_determinism! { l10d DateTimeBefore; String, fake_date_time_before_en, fake_date_time_before_fr, fake_date_time_before_cn, fake_date_time_before_tw, fake_date_time_before_jp, fake_date_time_before_br, hi() } check_determinism! { l10d DateTimeBetween; String, fake_date_time_between_en, fake_date_time_between_fr, fake_date_time_between_cn, fake_date_time_between_tw, fake_date_time_between_jp, fake_date_time_between_br, lo(), hi() } check_determinism! { l10d Duration; ::chrono::Duration, fake_duration_en, fake_duration_fr, fake_duration_cn, fake_duration_tw, fake_duration_jp, fake_duration_br }