Skip to content

Commit 461b60b

Browse files
fix
1 parent 5050e0e commit 461b60b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cedar-policy-core/src/ast/name.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,11 @@ impl FromNormalizedStr for Name {
220220
#[cfg(feature = "arbitrary")]
221221
impl<'a> arbitrary::Arbitrary<'a> for Name {
222222
fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> {
223-
Ok(Self::new(u.arbitrary()?, u.arbitrary()?, None))
223+
Ok(Self {
224+
id: u.arbitrary()?,
225+
path: u.arbitrary()?,
226+
loc: None,
227+
})
224228
}
225229
}
226230

0 commit comments

Comments
 (0)