Skip to content

Commit

Permalink
Opt in to pedantic clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 30, 2020
1 parent d263b4b commit c0a56fe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -39,4 +39,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@clippy
- run: cargo clippy --tests -- -Dclippy::all
- run: cargo clippy --tests -- -Dclippy::pedantic
12 changes: 11 additions & 1 deletion impl/src/lib.rs
@@ -1,4 +1,14 @@
#![allow(clippy::blocks_in_if_conditions, clippy::range_plus_one)]
#![allow(
clippy::blocks_in_if_conditions,
clippy::cast_possible_truncation,
clippy::filter_map_next,
clippy::map_unwrap_or,
clippy::needless_pass_by_value,
clippy::option_if_let_else,
clippy::range_plus_one,
clippy::single_match_else,
clippy::too_many_lines
)]

extern crate proc_macro;

Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Expand Up @@ -185,6 +185,8 @@
//!
//! [`anyhow`]: https://github.com/dtolnay/anyhow

#![allow(clippy::module_name_repetitions)]

mod aserror;
mod display;

Expand Down

0 comments on commit c0a56fe

Please sign in to comment.