We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Bindings::write
1 parent 9896a57 commit e0367f8Copy full SHA for e0367f8
src/lib.rs
@@ -172,7 +172,7 @@ impl Bindings {
172
self.write(Box::new(file))
173
}
174
175
- pub fn write<'a>(&'a self, mut writer: Box<Write + 'a>) -> io::Result<()> {
+ pub fn write<'a, 'b>(&'a self, mut writer: Box<Write + 'b>) -> io::Result<()> {
176
try!(writer.write("/* automatically generated by rust-bindgen */\n\n".as_bytes()));
177
let mut ps = pprust::rust_printer(writer);
178
try!(ps.print_mod(&self.module, &[]));
@@ -249,4 +249,4 @@ fn builder_state()
249
assert!(build.logger.is_some());
250
assert!(build.options.clang_args.binary_search(&"example.h".to_string()).is_ok());
251
assert!(build.options.links.binary_search(&("m".to_string(), LinkType::Static)).is_ok());
252
-}
+}
0 commit comments