diff options
author | Tim Oram <dev@mitmaro.ca> | 2022-10-10 21:15:37 -0230 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2022-10-18 10:12:37 -0230 |
commit | e2bd55598366431256d77b559d570972e582ac2f (patch) | |
tree | 9f407ef777d132ba097ed44ec17313aba0af1389 /src/display | |
parent | 953cb273aa6ebfb26d47e4cabbbf0df8e28c6858 (diff) |
Enable clippy on workspace
At some point the workspace flag was removed from the Clippy linting
command. This resulted in Clippy not running against most of the project
for the past year. This addresses the remaining issue, and enables the
workspace linting again.
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/src/lib.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/display/src/lib.rs b/src/display/src/lib.rs index 24b2d57..9e8f721 100644 --- a/src/display/src/lib.rs +++ b/src/display/src/lib.rs @@ -67,6 +67,7 @@ clippy::mod_module_files, clippy::module_name_repetitions, clippy::new_without_default, + clippy::non_ascii_literal, clippy::option_if_let_else, clippy::pub_use, clippy::redundant_pub_crate, @@ -85,6 +86,23 @@ rustdoc::private_doc_tests, rustdoc::private_intra_doc_links )] +// allow some things in tests +#![cfg_attr( + test, + allow( + clippy::cognitive_complexity, + clippy::let_underscore_drop, + clippy::let_underscore_must_use, + clippy::needless_pass_by_value, + clippy::panic, + clippy::shadow_reuse, + clippy::shadow_unrelated, + clippy::undocumented_unsafe_blocks, + clippy::unimplemented, + clippy::unreachable + ) +)] +// allowable upcoming nightly lints #![cfg_attr( include_nightly_lints, allow(clippy::arithmetic_side_effects, clippy::bool_to_int_with_if) |