Skip to content

Commit 78db66e

Browse files
committed
Remove AssignDesugar span
1 parent 05aaed9 commit 78db66e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/shadow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl<'tcx> LateLintPass<'tcx> for Shadow {
133133
.tcx
134134
.hir_parent_iter(pat.hir_id)
135135
.find(|(_, node)| !matches!(node, Node::Pat(_) | Node::PatField(_)))
136-
&& let LocalSource::AssignDesugar(_) = let_stmt.source
136+
&& let LocalSource::AssignDesugar = let_stmt.source
137137
{
138138
return;
139139
}

clippy_lints/src/undocumented_unsafe_blocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ fn expr_has_unnecessary_safety_comment<'tcx>(
374374
hir::Stmt {
375375
kind:
376376
hir::StmtKind::Let(hir::LetStmt {
377-
source: hir::LocalSource::AssignDesugar(_),
377+
source: hir::LocalSource::AssignDesugar,
378378
..
379379
}),
380380
..

0 commit comments

Comments
 (0)