Skip to content

Commit e5d697e

Browse files
committed
Removed an duplicated if statement
1 parent 62b510d commit e5d697e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_lints/src/use_self.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
262262
if let PatKind::Path(QPath::Resolved(_, path))
263263
| PatKind::TupleStruct(QPath::Resolved(_, path), _, _)
264264
| PatKind::Struct(QPath::Resolved(_, path), _, _) = pat.kind;
265-
if !matches!(path.res, Res::SelfTy { .. } | Res::SelfCtor(_) | Res::Def(DefKind::TyParam, _));
266265
if cx.typeck_results().pat_ty(pat) == cx.tcx.type_of(impl_id);
267266
then {
268267
match path.res {

0 commit comments

Comments
 (0)