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.
1 parent 7683cc8 commit 174f97cCopy full SHA for 174f97c
src/lib.rs
@@ -3,7 +3,6 @@
3
4
#![cfg_attr(feature = "clippy", feature(plugin))]
5
#![cfg_attr(feature = "clippy", plugin(clippy))]
6
-#![cfg_attr(feature = "clippy", allow(needless_lifetimes))]
7
8
extern crate syntex_syntax as syntax;
9
extern crate libc;
@@ -198,6 +197,8 @@ impl Bindings {
198
197
self.write(Box::new(file))
199
}
200
+ // https://github.com/Manishearth/rust-clippy/issues/740
201
+ #[cfg_attr(feature = "clippy", allow(needless_lifetimes))]
202
pub fn write<'a>(&self, mut writer: Box<Write + 'a>) -> io::Result<()> {
203
try!(writer.write("/* automatically generated by rust-bindgen */\n\n".as_bytes()));
204
let mut ps = pprust::rust_printer(writer);
0 commit comments