diff options
author | Nick Fitzgerald <fitzgen@gmail.com> | 2018-02-14 10:15:29 -0800 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2018-02-14 10:31:50 -0800 |
commit | eb415c7a7cf8c72664dbfda5a614474cda5c185c (patch) | |
tree | 3959221a147ddefd2d910be87f1058b2b28eefb0 /src/lib.rs | |
parent | a09a8ff66eef3f53340201a79cc09cefacf6163e (diff) |
Revert "Bump quote to 0.4"
This reverts commit 6899c275ee0ab0687ec66c490ddd1a76f8223513.
The `proc_macro2` crate depends on rustc internal crates, which means that
`bindgen` would need to be run under `rustup`.
We can follow https://github.com/rust-lang/rust/issues/47931 to get updates on
when this issue might be resolved and we can update `quote` again.
Fixes #1248
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -23,7 +23,6 @@ extern crate lazy_static; extern crate peeking_take_while; #[macro_use] extern crate quote; -extern crate proc_macro2; extern crate regex; extern crate which; @@ -1693,7 +1692,7 @@ impl Bindings { writer.write("\n".as_bytes())?; } - let bindings = self.module.to_string(); + let bindings = self.module.as_str().to_string(); match self.rustfmt_generated_string(&bindings) { Ok(rustfmt_bindings) => { @@ -1701,7 +1700,7 @@ impl Bindings { }, Err(err) => { eprintln!("{:?}", err); - writer.write(bindings.as_bytes())?; + writer.write(bindings.as_str().as_bytes())?; }, } Ok(()) |