Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 2d64858

Browse files
committed
Auto merge of #1304 - alexheretic:cargo-fmt, r=Xanewok
Add rustfmt.toml & run cargo fmt It's fairly quiet so not a bad time to run rustfmt on the project. I've added the non-default _use_field_init_shorthand, condense_wildcard_suffixes, merge_imports_ configs as a personal preference. But I'm cool with fully default too if people want that. @Xanewok r?
2 parents f898539 + 15e0e20 commit 2d64858

36 files changed

+992
-1855
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::path::Path;
1211
use std::env;
12+
use std::path::Path;
1313

1414
fn main() {
1515
println!("cargo:rerun-if-changed=build.rs");

rustfmt.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
use_field_init_shorthand = true
2+
condense_wildcard_suffixes = true
3+
use_small_heuristics = "Max"

0 commit comments

Comments
 (0)