Skip to content

Commit e0367f8

Browse files
author
Jorge Aparicio
committed
remove unnecessary lifetime bound from Bindings::write
1 parent 9896a57 commit e0367f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl Bindings {
172172
self.write(Box::new(file))
173173
}
174174

175-
pub fn write<'a>(&'a self, mut writer: Box<Write + 'a>) -> io::Result<()> {
175+
pub fn write<'a, 'b>(&'a self, mut writer: Box<Write + 'b>) -> io::Result<()> {
176176
try!(writer.write("/* automatically generated by rust-bindgen */\n\n".as_bytes()));
177177
let mut ps = pprust::rust_printer(writer);
178178
try!(ps.print_mod(&self.module, &[]));
@@ -249,4 +249,4 @@ fn builder_state()
249249
assert!(build.logger.is_some());
250250
assert!(build.options.clang_args.binary_search(&"example.h".to_string()).is_ok());
251251
assert!(build.options.links.binary_search(&("m".to_string(), LinkType::Static)).is_ok());
252-
}
252+
}

0 commit comments

Comments
 (0)