Skip to content

Commit ece8735

Browse files
committed
rule: Fix crash on RuleFlag of attempt to subtract with overflow
The `RuleFlag::DevDetached` is equal to `RuleFlag::IifDetached`, hence only one of them should be listed in search list of flags. Signed-off-by: Gris Ge <[email protected]>
1 parent 12b5f0b commit ece8735

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rule/flags.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ pub enum RuleFlag {
1919
Other(u32),
2020
}
2121

22-
const ALL_RULE_FLAGS: [RuleFlag; 6] = [
22+
const ALL_RULE_FLAGS: [RuleFlag; 5] = [
2323
RuleFlag::Permanent,
2424
RuleFlag::Invert,
2525
RuleFlag::Unresolved,
2626
RuleFlag::IifDetached,
27-
RuleFlag::DevDetached,
2827
RuleFlag::OifDetached,
2928
];
3029

0 commit comments

Comments
 (0)