mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +00:00
Removing the lint
features and invoking cargo clippy
manually instead
This commit is contained in:
parent
3f2a85ef15
commit
3dffd4908c
3 changed files with 12 additions and 18 deletions
|
@ -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=
|
||||
|
|
|
@ -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
|
||||
|
|
18
src/lib.rs
18
src/lib.rs
|
@ -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))]
|
||||
|
|
Loading…
Reference in a new issue