Skip to content

Commit 939d842

Browse files
committed
Simplify
1 parent 368223a commit 939d842

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/default_trait_access.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for DefaultTraitAccess {
5353
// explicitly name the type.
5454
if let ExprKind::Call(ref method, ref _args) = expr.node;
5555
if let ExprKind::Path(ref p) = method.node;
56-
if let QPath::Resolved(ref ty, ref _path) = p;
57-
if ty.is_some();
56+
if let QPath::Resolved(Some(_ty), _path) = p;
5857
then {
5958
return;
6059
}

0 commit comments

Comments
 (0)