Skip to content

Commit 4b3a87f

Browse files
committed
clippy
1 parent 8b19845 commit 4b3a87f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

clippy_lints/src/methods/unwrap_or_else_default.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,8 @@ pub(super) fn check<'tcx>(
2626
let is_default_eq = match &u_arg.kind {
2727
hir::ExprKind::Path(qpath) => {
2828
if let Some(repl_def_id) = cx.qpath_res(qpath, u_arg.hir_id).opt_def_id() {
29-
if is_diag_trait_item(cx, repl_def_id, sym::Default)
29+
is_diag_trait_item(cx, repl_def_id, sym::Default)
3030
|| is_default_equivalent_ctor(cx, repl_def_id, qpath)
31-
{
32-
true
33-
} else {
34-
false
35-
}
3631
} else {
3732
false
3833
}

0 commit comments

Comments
 (0)