Enforce question mark not used in serde crate yet

Question mark regresses compile time by 6.5–7.5%.
This commit is contained in:
David Tolnay 2023-07-27 19:02:09 -07:00
parent 0676673ca5
commit 91ec1c290f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -149,6 +149,8 @@
must_use_candidate,
)
)]
// Restrictions
#![cfg_attr(feature = "cargo-clippy", deny(question_mark_used))]
// Rustc lints.
#![deny(missing_docs, unused_imports)]