chore(rust): allow clippy::missing_const_for_fn

This commit is contained in:
Boshen 2023-03-07 21:23:54 +08:00
parent 11237f3cbd
commit 711354a40b
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -16,11 +16,20 @@ rustflags = [
"-Wclippy::all",
# I want to write the best Rust code so both pedantic and nursery is enabled.
# We should only disable rules globally if they are: false positives, chaotic, or does not make sense.
# We should only disable rules globally if they are either false positives, chaotic, or does not make sense.
"-Wclippy::pedantic",
"-Wclippy::nursery",
"-Wclippy::dbg_macro",
"-Aclippy::module_name_repetitions"
# pedantic
# This rule is too pedantic, I don't want to force this because naming things are hard.
"-Aclippy::module_name_repetitions",
# nursery rules
# `const` functions do not make sense for our project because this is not a `const` library.
# This rule also confuses new comers and forces them to add `const` blindlessly without any reason.
"-Aclippy::missing_const_for_fn"
]