1
Fork 0

don't add redundant help for object safety violations

This commit is contained in:
Ryan Mehri 2023-10-26 08:20:49 -07:00
parent 4fd68eb47b
commit af6b84aaab
No known key found for this signature in database
GPG key ID: CEAFB62465F3A716
4 changed files with 75 additions and 35 deletions

View file

@ -192,7 +192,7 @@ fn lint_object_unsafe_trait(
);
if node.is_some() {
// Only provide the help if its a local trait, otherwise it's not
violation.solution(err);
violation.solution().add_to(err);
}
err
},