mirror of
https://github.com/0x5eal/chrono-lc.git
synced 2025-04-10 21:20:53 +01:00
fix(build): tell rustfmt to ignore formatting for generated locales file
This commit is contained in:
parent
5065fec39d
commit
5aaea1a99b
1 changed files with 10 additions and 2 deletions
12
build.rs
12
build.rs
|
@ -1,4 +1,9 @@
|
||||||
use serde_derive::Deserialize;
|
extern crate serde;
|
||||||
|
extern crate walkdir;
|
||||||
|
#[macro_use]
|
||||||
|
extern crate serde_derive;
|
||||||
|
extern crate serde_json;
|
||||||
|
|
||||||
use serde_json::Error as JsonError;
|
use serde_json::Error as JsonError;
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
@ -22,7 +27,10 @@ fn main() {
|
||||||
let mut f = File::create(&dest_path).unwrap();
|
let mut f = File::create(&dest_path).unwrap();
|
||||||
|
|
||||||
let _ = f.write_all(
|
let _ = f.write_all(
|
||||||
r#####"lazy_static! {
|
r#####"
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
|
|
||||||
|
lazy_static! {
|
||||||
pub static ref LOCALES: Locales = {
|
pub static ref LOCALES: Locales = {
|
||||||
let mut res = Locales {
|
let mut res = Locales {
|
||||||
short_months: HashMap::new(),
|
short_months: HashMap::new(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue