Enable clippy linting.

This commit is contained in:
Sean Bowe 2017-07-16 21:50:03 -06:00
parent 6df2c003c7
commit 451b2c30ad
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
2 changed files with 15 additions and 1 deletions

@ -11,7 +11,9 @@ repository = "https://github.com/ebfull/pairing"
[dependencies]
rand = "0.3"
byteorder = "1.1"
byteorder = "1.1.0"
clippy = { version = "0.0.144", optional = true }
[features]
unstable-wnaf = []
unstable-features = ["unstable-wnaf"]

@ -1,5 +1,17 @@
// This library relies on the Rust nightly compiler's `i128_type` feature.
#![feature(i128_type)]
// `clippy` is a code linting tool for improving code quality by catching
// common mistakes or strange code patterns. If the `clippy` feature is
// provided, it is enabled and all compiler warnings are prohibited.
#![cfg_attr(feature = "clippy", deny(warnings))]
#![cfg_attr(feature = "clippy", feature(plugin))]
#![cfg_attr(feature = "clippy", plugin(clippy))]
#![cfg_attr(feature = "clippy", allow(inline_always))]
#![cfg_attr(feature = "clippy", allow(too_many_arguments))]
// The compiler provides `test` (on nightly) for benchmarking tools, but
// it's hidden behind a feature flag. Enable it if we're testing.
#![cfg_attr(test, feature(test))]
#[cfg(test)]
extern crate test;