mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-16 16:58:50 +00:00
Use clippy
This commit is contained in:
@ -5,3 +5,10 @@ authors = ["Abhishek Chanda <abhishe.becsk@gmail.com>"]
|
|||||||
description = "A library to work with IP CIDRs in Rust, heavily WIP"
|
description = "A library to work with IP CIDRs in Rust, heavily WIP"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
repository = "https://github.com/achanda/ipnetwork"
|
repository = "https://github.com/achanda/ipnetwork"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
clippy = {version = "0.0.21", optional = true}
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = []
|
||||||
|
dev = ["clippy"]
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#![cfg_attr(feature = "dev", allow(unstable_features))]
|
||||||
|
#![cfg_attr(feature = "dev", feature(plugin))]
|
||||||
|
#![cfg_attr(feature = "dev", plugin(clippy))]
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![feature(ip_addr)]
|
#![feature(ip_addr)]
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
|
Reference in New Issue
Block a user