From 162cf261dc1874ec1b7b684b3fd6193c2c8460be Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Fri, 17 Apr 2020 10:26:58 +0900 Subject: [PATCH] unit_arg suggestion may be incorrect --- clippy_lints/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs index 14f4ea154eb..09d5e6bd43d 100644 --- a/clippy_lints/src/types.rs +++ b/clippy_lints/src/types.rs @@ -786,7 +786,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnitArg { "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, ); } }