hashes: Add lint return_self_must_use

Add the lint. No additional clippy warnings are introduced.
This commit is contained in:
Tobin C. Harding 2024-12-10 10:56:33 +11:00
parent 8eda92ee7b
commit b9b8ddafde
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@
#![warn(missing_docs)]
#![warn(deprecated_in_future)]
#![doc(test(attr(warn(unused))))]
// Pedantic lints that we enforce.
#![warn(clippy::return_self_not_must_use)]
// Instead of littering the codebase for non-fuzzing and bench code just globally allow.
#![cfg_attr(hashes_fuzz, allow(dead_code, unused_imports))]
#![cfg_attr(bench, allow(dead_code, unused_imports))]