mirror of
https://github.com/0x5eal/chrono-lc.git
synced 2025-04-17 10:23:51 +01:00
chore: please the clippy overlords - 1
This commit is contained in:
parent
3025d4721a
commit
50168ae609
1 changed files with 40 additions and 45 deletions
15
build.rs
15
build.rs
|
@ -59,8 +59,7 @@ fn main() {
|
|||
if let Ok(locale_data) = load_locale(&entry) {
|
||||
if let Some(long_months) = locale_data.long_months {
|
||||
if long_months.len() == 12 {
|
||||
let _ = f
|
||||
.write_all(
|
||||
f.write_all(
|
||||
format!(
|
||||
"res.long_months.insert(\"{}\".into(), vec![{}]);\n",
|
||||
locale_name,
|
||||
|
@ -74,8 +73,7 @@ fn main() {
|
|||
|
||||
if let Some(short_months) = locale_data.short_months {
|
||||
if short_months.len() == 12 {
|
||||
let _ = f
|
||||
.write_all(
|
||||
f.write_all(
|
||||
format!(
|
||||
"res.short_months.insert(\"{}\".into(), vec![{}]);\n",
|
||||
locale_name,
|
||||
|
@ -89,8 +87,7 @@ fn main() {
|
|||
|
||||
if let Some(long_weekdays) = locale_data.long_weekdays {
|
||||
if long_weekdays.len() == 7 {
|
||||
let _ = f
|
||||
.write_all(
|
||||
f.write_all(
|
||||
format!(
|
||||
"res.long_weekdays.insert(\"{}\".into(), vec![{}]);\n",
|
||||
locale_name,
|
||||
|
@ -104,8 +101,7 @@ fn main() {
|
|||
|
||||
if let Some(short_weekdays) = locale_data.short_weekdays {
|
||||
if short_weekdays.len() == 7 {
|
||||
let _ = f
|
||||
.write_all(
|
||||
f.write_all(
|
||||
format!(
|
||||
"res.short_weekdays.insert(\"{}\".into(), vec![{}]);\n",
|
||||
locale_name,
|
||||
|
@ -119,8 +115,7 @@ fn main() {
|
|||
|
||||
if let Some(ampm) = locale_data.ampm {
|
||||
if ampm.len() == 4 {
|
||||
let _ = f
|
||||
.write_all(
|
||||
f.write_all(
|
||||
format!(
|
||||
"res.ampm.insert(\"{}\".into(), vec![{}]);\n",
|
||||
locale_name,
|
||||
|
|
Loading…
Add table
Reference in a new issue