Skip to content

Commit 162cf26

Browse files
committed
unit_arg suggestion may be incorrect
1 parent eb9c15a commit 162cf26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnitArg {
786786
"passing a unit value to a function",
787787
"if you intended to pass a unit value, use a unit literal instead",
788788
"()".to_string(),
789-
Applicability::MachineApplicable,
789+
Applicability::MaybeIncorrect,
790790
);
791791
}
792792
}

0 commit comments

Comments
 (0)