Add clippy warnings
@@ -6,8 +6,8 @@ sudo: required
dist: trusty
env:
global:
- - NIGHTLY_RUST=nightly-2017-05-10
- - CLIPPY_VERS=0.0.131
+ - NIGHTLY_RUST=nightly-2017-05-29
+ - CLIPPY_VERS=0.0.136
- RUSTFMT_VERS=0.8.4
before_install:
- rustfmt --version | grep $RUSTFMT_VERS || cargo install rustfmt --force --vers $RUSTFMT_VERS
@@ -18,8 +18,10 @@ before_install:
install:
- sudo apt-get -qq --yes install gcc g++ make libsodium-dev libleveldb-dev libssl-dev
script:
-- cargo fmt -p timestamping -- --write-mode=diff
-- cargo test --manifest-path backend/Cargo.toml
+- cd backend
+- cargo fmt -- --write-mode=diff
+- cargo +$NIGHTLY_RUST clippy
+- cargo test
notifications:
slack:
rooms:
