diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-03-12 20:13:19 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-03-12 20:13:19 +0100 |
commit | 174f97cb02ba1a2239cb65e983cbcdc4ae97ef23 (patch) | |
tree | 4eff08e872d71e7d42bd6f83d00363c0d054b496 | |
parent | 7683cc8636d07dd68b14df86bde9c803169e13f7 (diff) |
Disallow needless_lifetimes
https://github.com/Manishearth/rust-clippy/issues/740
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,7 +3,6 @@ #![cfg_attr(feature = "clippy", feature(plugin))] #![cfg_attr(feature = "clippy", plugin(clippy))] -#![cfg_attr(feature = "clippy", allow(needless_lifetimes))] extern crate syntex_syntax as syntax; extern crate libc; @@ -198,6 +197,8 @@ impl Bindings { self.write(Box::new(file)) } + // https://github.com/Manishearth/rust-clippy/issues/740 + #[cfg_attr(feature = "clippy", allow(needless_lifetimes))] pub fn write<'a>(&self, mut writer: Box<Write + 'a>) -> io::Result<()> { try!(writer.write("/* automatically generated by rust-bindgen */\n\n".as_bytes())); let mut ps = pprust::rust_printer(writer); |