ruff/ruff_macros/src
Martin Fischer 0b7fa64481 refactor: Drop PartialOrd & Ord impls for RuleSelector
RuleSelector implemented PartialOrd & Ord because ruff::flake8_to_ruff
was using RuleSelector within a BTreeSet (which requires contained
elements to implement Ord). There however is no inherent order to
rule selectors, so PartialOrd & Ord should not be implemented.

This commit changes BTreeSet<RuleSelector> to HashSet<RuleSelector>
and adds an explicit sort calls based on the serialized strings,
letting us drop the PartialOrd & Ord impls in favor of a Hash impl.
2023-01-31 07:21:12 -05:00
..
config.rs Add proc-macro to derive `CheckCodePrefix` (#1656) 2023-01-05 11:39:16 -05:00
define_rule_mapping.rs refactor: Turn RuleSelector into a newtype around RuleCodePrefix 2023-01-24 09:26:19 -05:00
derive_message_formats.rs derive-msg-formats 4/5: Implement #[derive_message_formats] 2023-01-19 11:03:32 -05:00
lib.rs Add #![warn(clippy::pedantic)] to lib.rs and main.rs files 2023-01-25 00:40:29 -05:00
rule_code_prefix.rs refactor: Drop PartialOrd & Ord impls for RuleSelector 2023-01-31 07:21:12 -05:00
rule_namespace.rs refactor: Change RuleNamespace::prefixes to common_prefix 2023-01-29 21:32:37 -05:00