d2400a49a4
Add new lint `hashset_insert_after_contains` This PR closes https://github.com/rust-lang/rust-clippy/issues/11103. This is my first PR creating a new lint (and the second attempt of creating this PR, the first one I was not able to continue because of personal reasons). Thanks for the patience :) The idea of the lint is to find insert in hashmanps inside if staments that are checking if the hashmap contains the same value that is being inserted. This is not necessary since you could simply call the insert and check for the bool returned if you still need the if statement. changelog: new lint: [hashset_insert_after_contains]