diff options
author | Manas Karekar <powerslave12r@gmail.com> | 2017-09-26 07:45:51 -0400 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2017-10-27 11:05:08 -0700 |
commit | d5d962332b8574c06cdbe90b7fbc88486f4772c3 (patch) | |
tree | f4cc39b62ac79e69faab646b7c781756ab176b3b /tests/tests.rs | |
parent | a08d8fd65f2099ad8a97f796eab0f8ce8fc0a6c2 (diff) |
lib: rustfmt output to stdout
Simplify the rustfmt and write mechanism. Use rustfmt generated string to allow
writing to stdout or to rustfmt a file.
Diffstat (limited to 'tests/tests.rs')
-rw-r--r-- | tests/tests.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 36c872dc..5b12861f 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -256,6 +256,9 @@ fn create_bindgen_builder(header: &PathBuf) -> Result<Option<Builder>, Error> { let prepend = [ "bindgen", + // We format in `compare_generated_header` ourselves to have a little + // more control. + "--no-rustfmt-bindings", "--with-derive-default", header_str, "--raw-line", |