[new_without_default]: make the suggestion machine-applicable

Now that generics and lifetimes are output as expected, the lint
should be applicable.
This commit is contained in:
Samuel Tardieu 2023-08-01 20:28:10 +02:00
parent 621e76d252
commit f9b22e7b84
2 changed files with 28 additions and 2 deletions

View file

@ -155,7 +155,7 @@ impl<'tcx> LateLintPass<'tcx> for NewWithoutDefault {
&generics_sugg,
&where_clause_sugg
),
Applicability::MaybeIncorrect,
Applicability::MachineApplicable,
);
},
);