travis: Add clippy
This commit is contained in:
parent
8aa4e65856
commit
38708c4ead
|
@ -32,7 +32,8 @@ before_script:
|
|||
|
||||
script:
|
||||
- cargo fmt -- --write-mode=diff
|
||||
- travis-cargo build
|
||||
- travis-cargo --skip nightly build
|
||||
- travis-cargo --only nightly build -- --features "clippy"
|
||||
- travis-cargo --only stable doc -- --no-deps
|
||||
|
||||
after_success:
|
||||
|
|
|
@ -8,6 +8,7 @@ wayland-server = "0.8.4"
|
|||
nix = "0.7.0"
|
||||
slog = { version = "~1.5.2", features = ["max_level_trace", "release_max_level_info"] }
|
||||
slog-stdlog = "~1.1.0"
|
||||
clippy = { version = "*", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
slog-term = "~1.5"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#![warn(missing_docs)]
|
||||
|
||||
#![cfg_attr(feature = "clippy", feature(plugin))]
|
||||
#![cfg_attr(feature = "clippy", plugin(clippy))]
|
||||
|
||||
#[macro_use]
|
||||
extern crate wayland_server;
|
||||
extern crate nix;
|
||||
|
|
Loading…
Reference in New Issue