Skip to content

Commit

Permalink
Enforce question mark not used in serde crate yet
Browse files Browse the repository at this point in the history
Question mark regresses compile time by 6.5–7.5%.
  • Loading branch information
dtolnay committed Jul 28, 2023
1 parent 0676673 commit 91ec1c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
must_use_candidate,
)
)]
// Restrictions
#![cfg_attr(feature = "cargo-clippy", deny(question_mark_used))]
// Rustc lints.
#![deny(missing_docs, unused_imports)]

Expand Down

0 comments on commit 91ec1c2

Please sign in to comment.