5 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
2f621ddeae Rustfmt. 2019-09-17 11:53:23 +09:00
Colin Wallace
6aa5b2b422 Update rustfmt.toml options for compatibility with modern rustfmt
Running `cargo fmt` or `cargo +nightly fmt` gives the following
warnings:
```
Warning: Unknown configuration option `fn_brace_style`
Warning: Unknown configuration option `item_brace_style`
Warning: Unknown configuration option `struct_lit_multiline_style`
Warning: Unknown configuration option `where_trailing_comma`
```

rustfmt changed these options here, and this PR reflects the changes:
* `fn_brace_style` and `item_brace_style` were folded into
  `brace_style`: f8074b340d (diff-6d8a5e2104954a026de2bfe2b936aea4R541)
* `struct_lit_multiline_style` option was renamed to
  `struct_lit_single_line`: 45d4f7a2dd (diff-9de0a570da3404ffd4b364ef6a9f8195L1749)
* `where_trailing_comma` was removed, but appears to have no
   replacement: 6a58d91239 (diff-6d8a5e2104954a026de2bfe2b936aea4L369)
   So I left it in.

Running `cargo fmt` over the bindgen codebase produces a _lot_ of
changes, so I haven't done that. But I think it'd be a good idea to do
it at some point: opening PRs against a project that has its own
rustfmt.toml file but doesn't seem to follow it is a confusing process.
2019-06-06 09:51:27 -04:00
Anthony Ramine
72c3012e6e Remove unstable rustfmt-nightly features 2017-12-04 11:59:18 +01:00
Emilio Cobos Álvarez
b57b767112
Manual fixups, some of them pretty lame, and don't let rustfmt rewrap comments. 2016-11-01 17:15:18 +01:00
Emilio Cobos Álvarez
010e191295
Add rustfmt.toml 2016-11-01 17:00:35 +01:00