diff options
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(()) |