chore(clippy): allow #[must_use]

This commit is contained in:
Boshen 2023-05-11 20:57:51 +08:00
parent 7496bb521f
commit ed693d9941
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -58,6 +58,11 @@ rustflags = [
# This rule is too pedantic, I don't want to force this because naming things are hard.
"-Aclippy::module_name_repetitions",
# #[must_use] is creating too much noise for this codebase, it does not add much value execept nagging
# the programmer to add a #[must_use] after clippy has been run.
# Having #[must_use] every where also hinders readability.
"-Aclippy::must_use_candidate",
# nursery
# `const` functions do not make sense for our project because this is not a `const` library.