Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
feat: uses clippy to lint dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Aug 25, 2015
1 parent bfde40f commit e02b9d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ regex = "~0.1.41"
version = "~0.6.3"
optional = true

[dependencies.clippy]
version = "~0.0.11"
optional = true

[features]
default = ["color"]
color = ["ansi_term"]
debug = []
lints = ["clippy", "unstable"]
unstable = []
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#![cfg_attr(feature = "unstable", feature(plugin))]
#![cfg_attr(feature = "lints", plugin(clippy))]
#![cfg_attr(feature = "lints", deny(warnings))]

#[macro_use]
extern crate clap;
#[cfg(feature = "color")]
Expand Down

0 comments on commit e02b9d9

Please sign in to comment.