Skip to content

Commit c762069

Browse files
fix(PR-6192): name keyword choice parser result
Use a private alias for the parser's three-state keyword-choice payload so the strict outcome remains clear without tripping Clippy type complexity. Co-authored-by: Try everything <tryeverything24@users.noreply.github.com>
1 parent 230bc16 commit c762069

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/engine/src/parser/oracle_effect/subject.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3399,9 +3399,9 @@ fn build_keyword_choice_sub_ability(
33993399
))
34003400
}
34013401

3402-
fn parse_keyword_choice_grant(
3403-
predicate: &str,
3404-
) -> Result<Option<(Vec<Keyword>, Option<Duration>)>, ()> {
3402+
type KeywordChoiceGrant = (Vec<Keyword>, Option<Duration>);
3403+
3404+
fn parse_keyword_choice_grant(predicate: &str) -> Result<Option<KeywordChoiceGrant>, ()> {
34053405
let lower = predicate.to_lowercase();
34063406

34073407
// CR 608.2d: "gain your choice of X, Y, or Z" offers a resolution-time choice.

0 commit comments

Comments
 (0)