Skip to content

Commit fef1561

Browse files
igeladoemilio
authored andcommitted
Fix rustfmt errors
1 parent 965a13c commit fef1561

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

bindgen-integration/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ impl ParseCallbacks for MacroCallback {
4444
assert_eq!(value, b"string");
4545
*self.seen_hellos.lock().unwrap() += 1;
4646
}
47-
"TESTMACRO_STRING_EXPANDED"
48-
| "TESTMACRO_STRING"
49-
| "TESTMACRO_INTEGER" => {
47+
"TESTMACRO_STRING_EXPANDED" |
48+
"TESTMACRO_STRING" |
49+
"TESTMACRO_INTEGER" => {
5050
// The integer test macro is, actually, not expected to show up here at all -- but
5151
// should produce an error if it does.
5252
assert_eq!(

bindgen/callbacks.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ pub trait ParseCallbacks: fmt::Debug {
5252
}
5353

5454
/// Modify the contents of a macro
55-
fn modify_macro(&self, _name: &str, _tokens: &mut Vec<Token>) {
56-
}
55+
fn modify_macro(&self, _name: &str, _tokens: &mut Vec<Token>) {}
5756

5857
/// The integer kind an integer macro should have, given a name and the
5958
/// value of that macro, or `None` if you want the default to be chosen.

0 commit comments

Comments
 (0)