]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #7516 - lf-:unwrap-or-default, r=xFrednet
authorbors <bors@rust-lang.org>
Thu, 12 Aug 2021 08:02:44 +0000 (08:02 +0000)
committerbors <bors@rust-lang.org>
Thu, 12 Aug 2021 08:02:44 +0000 (08:02 +0000)
Add `unwrap_or_else_default` lint

---

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: Add a new [`unwrap_or_else_default`] style lint. This will catch `unwrap_or_else(Default::default)` on Result and Option and suggest `unwrap_or_default()` instead.

1  2 
clippy_utils/src/lib.rs

Simple merge