Make clippy an optional dependency

This commit is contained in:
Manish Goregaokar
2016-02-13 02:31:23 +05:30
parent 50b6c6d4ad
commit 8802fb2fd8
12 changed files with 28 additions and 19 deletions

View File

@@ -17,9 +17,8 @@
#![warn(missing_docs)]
#![feature(cell_extras)]
#![feature(augmented_assignments)]
#![feature(plugin)]
// Clippy
#![plugin(clippy)]
#![cfg_attr(feature="dev", feature(plugin))]
#![cfg_attr(feature="dev", plugin(clippy))]
// TODO [todr] not really sure
#![allow(needless_range_loop)]
// Shorter than if-else