2 Checks for maps with zero-sized value types anywhere in the code.
5 Since there is only a single value for a zero-sized type, a map
6 containing zero sized values is effectively a set. Using a set in that case improves
7 readability and communicates intent more clearly.
10 * A zero-sized type cannot be recovered later if it contains private fields.
11 * This lints the signature of public items
15 fn unique_words(text: &str) -> HashMap<&str, ()> {
21 fn unique_words(text: &str) -> HashSet<&str> {