unit_arg suggestion may be incorrect

This commit is contained in:
Shotaro Yamada
2020-04-17 10:26:58 +09:00
parent eb9c15a6b3
commit 162cf261dc
+1 -1
View File
@@ -786,7 +786,7 @@ fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr<'_>) {
"passing a unit value to a function",
"if you intended to pass a unit value, use a unit literal instead",
"()".to_string(),
Applicability::MachineApplicable,
Applicability::MaybeIncorrect,
);
}
}