Removing the lint features and invoking cargo clippy manually instead

This commit is contained in:
Kevin K 2019-04-04 13:27:08 -04:00
parent 3f2a85ef15
commit 3dffd4908c
No known key found for this signature in database
GPG key ID: 17218E4B3692F01A
3 changed files with 12 additions and 18 deletions

View file

@ -3,8 +3,15 @@ language: rust
cache: cargo
rust:
- nightly
- nightly-2019-03-23
- beta
- stable
- 1.30.0
matrix:
allow_failures:
- rust: nightly
nightly-2019-03-23:
- script: cargo clippy
before_script:
- |
pip install git+git://github.com/kbknapp/travis-cargo.git --user &&
@ -49,5 +56,4 @@ after_success:
echo "Uploaded code coverage"
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=lints
- secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=

View file

@ -74,8 +74,8 @@ color = ["ansi_term", "atty"]
wrap_help = ["term_size", "textwrap/term_size"]
derive = ["clap_derive"]
yaml = ["yaml-rust"]
unstable = [] # for building with unstable clap features (doesn't require nightly Rust)
nightly = [] # for building with unstable Rust features
unstable = [] # for building with unstable clap features (doesn't require nightly Rust) (currently none)
nightly = [] # for building with unstable Rust features (currently none)
debug = [] # Enables debug messages
no_cargo = [] # Enable if you're not using Cargo, disables Cargo-env-var-dependent macros
doc = ["yaml"] # All the features which add to documentation

View file

@ -516,21 +516,9 @@
//! [license]: https://raw.githubusercontent.com/kbknapp/clap-rs/master/LICENSE-MIT
#![crate_type = "lib"]
#![doc(html_root_url = "https://docs.rs/clap/3.0.0-beta.1")]
#![deny(
missing_docs,
missing_debug_implementations,
missing_copy_implementations,
trivial_casts,
unused_import_braces,
unused_allocation
)]
// @TODO @v3-beta: remove me!
#![allow(deprecated)]
#![cfg_attr(
not(any(feature = "lints", feature = "nightly")),
forbid(unstable_features)
)]
#![doc(html_root_url = "https://docs.rs/clap/2.32.0")]
#![deny(missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts,
unused_import_braces, unused_allocation, trivial_numeric_casts)]
// Need to disable deny(warnings) while deprecations are active
// #![cfg_attr(feature = "lints", deny(warnings))]
#![cfg_attr(feature = "lints", feature(plugin))]