mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 12:43:36 +00:00
unit_arg suggestion may be incorrect
This commit is contained in:
parent
eb9c15a6b3
commit
162cf261dc
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user