From e338f5f95f385a697f7825a322aec19599443f86 Mon Sep 17 00:00:00 2001 From: Luro02 <24826124+Luro02@users.noreply.github.com> Date: Sun, 8 Mar 2020 10:00:39 +0100 Subject: [PATCH] finer grained clippy lints --- src/lib.rs | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f673384..5b92abf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,12 +2,30 @@ #![warn( clippy::pedantic, // clippy::nursery, - clippy::cargo + clippy::cargo, + clippy::inline_always, )] #![allow( clippy::multiple_crate_versions, clippy::module_name_repetitions, - clippy::default_trait_access + clippy::default_trait_access, + clippy::unnecessary_operation // temporary until derive-builder uses #[allow(clippy::all)] +)] +#![warn( + clippy::clone_on_ref_ptr, + clippy::decimal_literal_representation, + clippy::get_unwrap, + clippy::option_expect_used, + clippy::unneeded_field_pattern, + clippy::wrong_pub_self_convention +)] +// those should not be present in production code: +#![deny( + clippy::print_stdout, + clippy::todo, + clippy::unimplemented, + clippy::dbg_macro, + clippy::use_debug )] #![warn( missing_docs,