diff options
author | Jorge Aparicio <japaricious@gmail.com> | 2015-05-11 14:45:02 -0500 |
---|---|---|
committer | Jorge Aparicio <japaricious@gmail.com> | 2015-05-11 14:45:02 -0500 |
commit | e0367f87c4a3234f3af6d5964792e2c825fe5fe6 (patch) | |
tree | fa50f3ebe81f364e6ff419e8be40b550a16dda3c | |
parent | 9896a57d85799fd8810aacdce767864a5f7188ff (diff) |
remove unnecessary lifetime bound from `Bindings::write`
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -172,7 +172,7 @@ impl Bindings { self.write(Box::new(file)) } - 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<()> { try!(writer.write("/* automatically generated by rust-bindgen */\n\n".as_bytes())); let mut ps = pprust::rust_printer(writer); try!(ps.print_mod(&self.module, &[])); @@ -249,4 +249,4 @@ fn builder_state() assert!(build.logger.is_some()); assert!(build.options.clang_args.binary_search(&"example.h".to_string()).is_ok()); assert!(build.options.links.binary_search(&("m".to_string(), LinkType::Static)).is_ok()); -}
\ No newline at end of file +} |