Skip to content

Commit 2f621dd

Browse files
committed
Rustfmt.
1 parent 3062841 commit 2f621dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2312
-1937
lines changed

Diff for: build.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ mod target {
77
pub fn main() {
88
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
99

10-
let mut dst = File::create(Path::new(&out_dir).join("host-target.txt"))
11-
.unwrap();
10+
let mut dst =
11+
File::create(Path::new(&out_dir).join("host-target.txt")).unwrap();
1212
dst.write_all(env::var("TARGET").unwrap().as_bytes())
1313
.unwrap();
1414
}
@@ -24,8 +24,8 @@ mod testgen {
2424

2525
pub fn main() {
2626
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
27-
let mut dst = File::create(Path::new(&out_dir).join("tests.rs"))
28-
.unwrap();
27+
let mut dst =
28+
File::create(Path::new(&out_dir).join("tests.rs")).unwrap();
2929

3030
let manifest_dir =
3131
PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
@@ -57,7 +57,8 @@ mod testgen {
5757
"test_header!(header_{}, {:?});",
5858
func,
5959
entry.path(),
60-
).unwrap();
60+
)
61+
.unwrap();
6162
}
6263
_ => {}
6364
}

Diff for: rustfmt.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
max_width = 80
2-
brace_style = "SameLineWhere"
3-
struct_lit_single_line = false
4-
where_trailing_comma = true
5-
normalize_comments = false
2+
binop_separator = "back"

Diff for: src/callbacks.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ pub trait ParseCallbacks: fmt::Debug + UnwindSafe {
3737

3838
/// This will be run on every string macro. The callback can not influence the further
3939
/// treatment of the macro, but may use the value to generate additional code or configuration.
40-
fn str_macro(&self, _name: &str, _value: &[u8]) {
41-
}
40+
fn str_macro(&self, _name: &str, _value: &[u8]) {}
4241

4342
/// This function should return whether, given an enum variant
4443
/// name, and value, this enum variant will forcibly be a constant.

0 commit comments

Comments
 (0)