Lint HashMap<T, ZST>
where ZST is any zero sized type
#1641
Labels
A-lint
Area: New lints
good-first-issue
These issues are a good way to get started with Clippy
L-unnecessary
Lint: Warn about unnecessary code
T-middle
Type: Probably requires verifiying types
The user should be using
HashSet<T>
instead and magically create the ZSTs out of thin air when needed (since they are all the same value anyway).The text was updated successfully, but these errors were encountered: