add excessive bools lints
This commit is contained in:
committed by
Mikhail Babenko
parent
8e28b2fdf1
commit
338fb7a3e9
@@ -154,6 +154,10 @@ define_Conf! {
|
||||
(array_size_threshold, "array_size_threshold": u64, 512_000),
|
||||
/// Lint: VEC_BOX. The size of the boxed type in bytes, where boxing in a `Vec` is allowed
|
||||
(vec_box_size_threshold, "vec_box_size_threshold": u64, 4096),
|
||||
/// Lint: STRUCT_EXCESSIVE_BOOLS. The maximum number of bools a struct can have
|
||||
(max_struct_bools, "max_struct_bools": u64, 3),
|
||||
/// Lint: FN_PARAMS_EXCESSIVE_BOOLS. The maximum number of bools function parameters can have
|
||||
(max_fn_params_bools, "max_fn_params_bools": u64, 3),
|
||||
}
|
||||
|
||||
impl Default for Conf {
|
||||
|
||||
Reference in New Issue
Block a user