Skip to content

Commit

Permalink
fix Arbitrary for AnyId (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdisselkoen authored Feb 14, 2024
1 parent a4c18c3 commit b21f84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cedar-policy-core/src/ast/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl<'a> arbitrary::Arbitrary<'a> for AnyId {
);
let s: String = cs.into_iter().collect();
debug_assert!(
crate::parser::parse_ident(&s).is_ok(),
crate::parser::parse_anyid(&s).is_ok(),
"all strings constructed this way should be valid AnyIds, but this one is not: {s:?}"
);
Ok(Self::new_unchecked(s))
Expand Down

0 comments on commit b21f84e

Please sign in to comment.