Auto merge of #16 - ebfull:clippy-impl, r=ebfull

Enable clippy linting

Closes #5
This commit is contained in:
bmerge 2017-07-17 03:51:15 +00:00
commit 7c35f2b8b0
2 changed files with 15 additions and 1 deletions

View File

@ -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"]

View File

@ -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;