[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:
parent
621e76d252
commit
f9b22e7b84
2 changed files with 28 additions and 2 deletions
|
|
@ -155,7 +155,7 @@ impl<'tcx> LateLintPass<'tcx> for NewWithoutDefault {
|
|||
&generics_sugg,
|
||||
&where_clause_sugg
|
||||
),
|
||||
Applicability::MaybeIncorrect,
|
||||
Applicability::MachineApplicable,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue