Work around clippy redundant_field_names bug

This commit is contained in:
David Tolnay 2020-04-23 11:21:28 -07:00
parent 0c4ffad9ec
commit 29be721f79
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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