prefer-set-over-unit-map Prefer sets over maps whose values are unit A map with unit values expresses only whether each key is present. Instead, you SHOULD use Set to represent membership directly. - Category: style - Level: warning - Fix: suggestion - Scope: module Reported const values = new Map(); Accepted const values = new Set(); Prior art - Clippy ยท zerosizedmapvalues language/linter/src/rules/style/prefersetoverunitmap.rs:8