Skip to content

Commit 174f97c

Browse files
committed
1 parent 7683cc8 commit 174f97c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#![cfg_attr(feature = "clippy", feature(plugin))]
55
#![cfg_attr(feature = "clippy", plugin(clippy))]
6-
#![cfg_attr(feature = "clippy", allow(needless_lifetimes))]
76

87
extern crate syntex_syntax as syntax;
98
extern crate libc;
@@ -198,6 +197,8 @@ impl Bindings {
198197
self.write(Box::new(file))
199198
}
200199

200+
// https://github.com/Manishearth/rust-clippy/issues/740
201+
#[cfg_attr(feature = "clippy", allow(needless_lifetimes))]
201202
pub fn write<'a>(&self, mut writer: Box<Write + 'a>) -> io::Result<()> {
202203
try!(writer.write("/* automatically generated by rust-bindgen */\n\n".as_bytes()));
203204
let mut ps = pprust::rust_printer(writer);

0 commit comments

Comments
 (0)