Skip to content

Commit

Permalink
Add Clippy lints on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
hauleth committed Sep 17, 2015
1 parent 54d7211 commit 3e049fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ optional = true
version = "*"
optional = true

[dependencies.clippy]
version = "*"
optional = true

[features]
default = [
"digest",
"crypto",
"ssl"
]
unstable = ["default"]
unstable = ["default", "lints"]
lints = ["clippy"]

digest = [
"digest-deprecated",
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
//!
//!

#![cfg_attr(feature = "clippy", feature(plugin))]
#![cfg_attr(feature = "clippy", plugin(clippy))]

#![deny(trivial_casts, unreachable_code, while_true)]
#![warn(unused_qualifications)]

Expand Down

0 comments on commit 3e049fa

Please sign in to comment.