Skip to content

Commit

Permalink
fix extra comma and rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cksac committed Nov 29, 2023
1 parent ee9dd3b commit 26cca38
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 59 deletions.
70 changes: 12 additions & 58 deletions fake/src/locales/pt_br.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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."];
}
2 changes: 1 addition & 1 deletion fake/tests/determinism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 26cca38

Please sign in to comment.