Skip to content

Commit 91ec1c2

Browse files
committed
Enforce question mark not used in serde crate yet
Question mark regresses compile time by 6.5–7.5%.
1 parent 0676673 commit 91ec1c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

serde/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@
149149
must_use_candidate,
150150
)
151151
)]
152+
// Restrictions
153+
#![cfg_attr(feature = "cargo-clippy", deny(question_mark_used))]
152154
// Rustc lints.
153155
#![deny(missing_docs, unused_imports)]
154156

0 commit comments

Comments
 (0)