bors
d2400a49a4
Auto merge of #12873 - lochetti:issue_11103, r=llogiq
...
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]
2024-07-04 05:39:28 +00:00
..
2024-06-13 12:30:48 +02:00
2024-06-20 13:57:16 +00:00
2024-06-25 17:50:48 +02:00
2024-06-27 18:49:59 +02:00
2024-06-13 12:30:48 +02:00
2024-07-02 23:27:14 +02:00
2024-06-14 14:43:08 +02:00
2024-06-13 12:30:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-20 04:25:17 +00:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-27 18:49:59 +02:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-27 18:49:59 +02:00
2024-06-27 18:49:59 +02:00
2024-06-24 16:08:51 +03:00
2024-06-16 18:33:43 -04:00
2024-06-16 18:33:43 -04:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-07-03 21:25:43 +07:00
2024-07-03 21:25:43 +07:00
2024-07-03 21:25:43 +07:00
2024-06-16 15:54:48 -04:00
2024-06-16 15:54:48 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-27 18:49:59 +02:00
2024-06-27 18:49:59 +02:00
2024-06-27 18:49:59 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-07-01 19:00:10 -07:00
2024-06-13 12:30:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-16 18:33:43 -04:00
2024-06-16 18:33:43 -04:00
2024-06-28 10:29:18 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-15 21:52:42 +02:00
2024-06-15 21:45:35 +02:00
2024-06-15 21:45:35 +02:00
2024-06-29 22:31:10 +02:00
2024-06-29 22:31:10 +02:00
2024-06-29 22:31:10 +02:00
2024-06-21 18:18:28 +02:00
2024-06-21 18:18:28 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-20 04:25:17 +00:00
2024-06-20 04:25:17 +00:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-07-02 19:30:01 +02:00
2024-07-02 19:30:01 +02:00
2024-07-02 19:30:01 +02:00
2024-07-02 19:30:01 +02:00
2024-07-02 19:30:01 +02:00
2024-07-03 20:58:21 +02:00
2024-07-03 20:58:21 +02:00
2024-07-03 20:58:21 +02:00
2024-06-13 12:24:31 +02:00
2024-06-13 12:24:31 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-16 22:36:24 -04:00
2024-06-16 22:36:24 -04:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-07-03 19:42:34 +01:00
2024-07-03 19:42:34 +01:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-24 16:08:51 +03:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-24 16:08:51 +03:00
2024-06-20 13:57:16 +00:00
2024-06-20 13:57:16 +00:00
2024-06-20 13:57:16 +00:00
2024-06-25 17:50:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-19 13:30:21 -04:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-25 17:50:48 +02:00
2024-06-13 12:30:48 +02:00
2024-06-13 12:30:48 +02:00