Skip to content

Commit 36b6b3f

Browse files
committed
Remove unused variable
1 parent bdf6eec commit 36b6b3f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_lints/src/unit_types/let_unit_value.rs

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, local: &'tcx LetStmt<'_>) {
9292
walk_body(&mut visitor, body);
9393

9494
// Add suggestions for replacing variable usages
95-
let has_usages = !visitor.spans.is_empty();
9695
suggestions.extend(visitor.spans.into_iter().map(|span| (span, "()".to_string())));
9796
}
9897

0 commit comments

Comments
 (0)