From ed693d9941d678b1a86d78f657eebfdd30ebd3d3 Mon Sep 17 00:00:00 2001 From: Boshen Date: Thu, 11 May 2023 20:57:51 +0800 Subject: [PATCH] chore(clippy): allow #[must_use] --- .cargo/config.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 1411ea185..b3f705af0 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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.