We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdf6eec commit 36b6b3fCopy full SHA for 36b6b3f
clippy_lints/src/unit_types/let_unit_value.rs
@@ -92,7 +92,6 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, local: &'tcx LetStmt<'_>) {
92
walk_body(&mut visitor, body);
93
94
// Add suggestions for replacing variable usages
95
- let has_usages = !visitor.spans.is_empty();
96
suggestions.extend(visitor.spans.into_iter().map(|span| (span, "()".to_string())));
97
}
98
0 commit comments