Skip to content

Commit db9276a

Browse files
committed
More lints
1 parent bac505f commit db9276a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/unit_types/let_unit_value.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,15 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, local: &'tcx LetStmt<'_>) {
104104
suggestions,
105105
Applicability::MachineApplicable,
106106
);
107-
()
108107
},
109108
Ordering::Greater => {
110109
diag.multipart_suggestion(
111110
"omit the `let` binding and replace variable usages with `()`",
112111
suggestions,
113112
Applicability::MachineApplicable,
114113
);
115-
()
116114
},
117-
Ordering::Less => (),
115+
Ordering::Less => {},
118116
};
119117
},
120118
);

0 commit comments

Comments
 (0)