docstrings and other cleanup

This commit is contained in:
kevin zhao
2025-11-12 18:51:32 -05:00
parent 3162a77e2a
commit ceea9075ea
4 changed files with 13 additions and 8 deletions

View File

@@ -207,12 +207,11 @@ fn policy_builtins(builder: &mut GlobalsBuilder) {
let rules: Vec<Rule> = first_token
.alternatives()
.iter()
.zip(std::iter::repeat(rest.clone()))
.map(|(head, rest)| {
.map(|head| {
Rule::Prefix(PrefixRule {
pattern: PrefixPattern {
first: Arc::from(head.as_str()),
rest,
rest: rest.clone(),
},
decision,
})