Skip to content

Commit 5ef4f44

Browse files
committed
Lint test case false positives corrected
1 parent 9300827 commit 5ef4f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/manual_checked_sub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl_lint_pass!(ManualCheckedSub => [MANUAL_CHECKED_SUB]);
5353

5454
impl<'tcx> LateLintPass<'tcx> for ManualCheckedSub {
5555
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
56-
if !self.msrv.meets(msrvs::MANUAL_CHECKED_SUB) {
56+
if !self.msrv.meets(cx, msrvs::MANUAL_CHECKED_SUB) {
5757
return;
5858
}
5959

0 commit comments

Comments
 (0)