Skip to content

Commit

Permalink
Work around clippy redundant_field_names bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 23, 2020
1 parent 0c4ffad commit 29be721
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,19 @@ matrix:
- rustup default "$CLIPPY_NIGHTLY"
- rustup component add clippy
script:
- cargo clippy -- -D clippy::all
# The need for -Aredundant_field_names here is a Clippy bug.
# https://github.com/rust-lang/rust-clippy/issues/5356
- cargo clippy -- -D clippy::all -A clippy::redundant_field_names
- cd "${TRAVIS_BUILD_DIR}/serde"
- cargo clippy --features rc,unstable -- -D clippy::all
- cargo clippy --features rc,unstable -- -D clippy::all -A clippy::redundant_field_names
- cd "${TRAVIS_BUILD_DIR}/serde_derive"
- cargo clippy -- -D clippy::all
- cd "${TRAVIS_BUILD_DIR}/serde_test"
- cargo clippy -- -D clippy::all
- cargo clippy -- -D clippy::all -A clippy::redundant_field_names
- cd "${TRAVIS_BUILD_DIR}/test_suite"
- cargo clippy --tests --features unstable -- -D clippy::all
- cargo clippy --tests --features unstable -- -D clippy::all -A clippy::redundant_field_names
- cd "${TRAVIS_BUILD_DIR}/test_suite/no_std"
- cargo clippy -- -D clippy::all
- cargo clippy -- -D clippy::all -A clippy::redundant_field_names

- rust: nightly
name: Emscripten
Expand Down

0 comments on commit 29be721

Please sign in to comment.