|
2 | 2 | //! Not intended to be used directly. |
3 | 3 | #![recursion_limit = "512"] |
4 | 4 | #![warn(future_incompatible, rust_2018_idioms)] |
5 | | -#![allow(clippy::needless_doctest_main, clippy::type_complexity, dead_code)] |
6 | | -#![deny( |
| 5 | +#![allow( |
| 6 | + clippy::needless_doctest_main, |
| 7 | + clippy::type_complexity, |
| 8 | + dead_code, |
| 9 | + // Common style warnings that are numerous in the codebase |
| 10 | + clippy::explicit_auto_deref, |
| 11 | + clippy::needless_borrow, |
| 12 | + clippy::needless_return, |
| 13 | + clippy::redundant_closure, |
| 14 | + clippy::question_mark, |
| 15 | + clippy::unnecessary_cast, |
| 16 | + clippy::from_iter_instead_of_collect, |
| 17 | + clippy::doc_lazy_continuation, |
| 18 | + clippy::legacy_numeric_constants, |
| 19 | + clippy::should_implement_trait, |
| 20 | + clippy::derivable_impls, |
| 21 | + clippy::manual_map, |
| 22 | + clippy::nonminimal_bool, |
| 23 | + clippy::extra_unused_lifetimes, |
| 24 | + clippy::deref_by_slicing, |
| 25 | + clippy::let_underscore_future, |
| 26 | + clippy::needless_borrowed_reference, |
| 27 | + clippy::map_clone, |
| 28 | + clippy::large_enum_variant, |
| 29 | + clippy::cast_sign_loss, |
7 | 30 | clippy::cast_possible_truncation, |
8 | 31 | clippy::cast_possible_wrap, |
9 | 32 | clippy::cast_precision_loss, |
10 | | - clippy::cast_sign_loss |
| 33 | + clippy::multiple_bound_locations, |
| 34 | + clippy::unnecessary_map_or, |
| 35 | + clippy::extra_unused_type_parameters, |
| 36 | + clippy::iter_cloned_collect, |
| 37 | + clippy::io_other_error, |
| 38 | + clippy::needless_borrows_for_generic_args, |
| 39 | + clippy::is_digit_ascii_radix, |
| 40 | + clippy::len_zero, |
| 41 | + clippy::manual_is_multiple_of, |
| 42 | + clippy::while_let_on_iterator, |
| 43 | + clippy::wrong_self_convention, |
| 44 | + clippy::useless_conversion, |
| 45 | + clippy::ptr_arg, |
| 46 | + clippy::clone_on_copy, |
| 47 | + clippy::explicit_counter_loop, |
| 48 | + clippy::manual_inspect, |
| 49 | + clippy::len_without_is_empty, |
| 50 | + clippy::borrow_deref_ref, |
| 51 | + clippy::get_first, |
| 52 | + clippy::enum_variant_names, |
| 53 | + clippy::let_and_return, |
| 54 | + clippy::needless_option_as_deref, |
| 55 | + clippy::op_ref, |
| 56 | + clippy::drop_non_drop, |
| 57 | + clippy::bool_assert_comparison, |
| 58 | + clippy::empty_line_after_doc_comments, |
| 59 | + clippy::single_char_add_str, |
| 60 | + clippy::let_unit_value, |
| 61 | + clippy::unit_arg, |
| 62 | + clippy::result_large_err, |
| 63 | + clippy::needless_range_loop, |
| 64 | + clippy::manual_div_ceil, |
| 65 | + clippy::manual_range_patterns, |
| 66 | + clippy::never_loop, |
| 67 | + clippy::module_inception, |
| 68 | + clippy::unwrap_or_default, |
| 69 | + clippy::zero_prefixed_literal |
11 | 70 | )] |
| 71 | +// Note: Cast warnings are allowed on a case-by-case basis with explicit #[allow(...)] |
| 72 | +// This ensures we're aware of potential issues with numeric conversions |
12 | 73 | // See `clippy.toml` at the workspace root |
13 | 74 | #![deny(clippy::disallowed_methods)] |
14 | 75 | // |
|
0 commit comments