summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2015-05-11 14:45:02 -0500
committerJorge Aparicio <japaricious@gmail.com>2015-05-11 14:45:02 -0500
commite0367f87c4a3234f3af6d5964792e2c825fe5fe6 (patch)
treefa50f3ebe81f364e6ff419e8be40b550a16dda3c
parent9896a57d85799fd8810aacdce767864a5f7188ff (diff)
remove unnecessary lifetime bound from `Bindings::write`
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index dc027927..6324785c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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
+}