Skip to content

Commit e74acce

Browse files
committed
clippy: add clippy lints
This doesn't fail the build currently but they are available for reference. Signed-off-by: Paul Osborne <[email protected]>
1 parent 254631a commit e74acce

File tree

3 files changed

+61
-23
lines changed

3 files changed

+61
-23
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ rust:
99

1010
script:
1111
- cargo test
12+
- |
13+
if [ "${TRAVIS_RUST_VERSION}" = "nightly" ]; then
14+
cargo install --git https://github.com/arcnmx/cargo-clippy
15+
cargo clippy --lib --features lints
16+
cargo clippy --bin gpio --features lints
17+
fi
1218
- cargo doc

Cargo.lock

Lines changed: 45 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ glob = "0.2"
1212
log = "0.3"
1313
env_logger = "0.3"
1414

15+
[dependencies.clippy]
16+
version = "*"
17+
git = "https://github.com/Manishearth/rust-clippy"
18+
rev = "master"
19+
optional = true
20+
21+
[features]
22+
default = []
23+
lints = ["clippy"]
24+
1525
[[bin]]
1626
name = "gpio"
1727
path = "src/main.rs"

0 commit comments

Comments
 (0)