diff --git a/cedar-policy/src/proto/policy.rs b/cedar-policy/src/proto/policy.rs index da4c503b0..9f7feb2e5 100644 --- a/cedar-policy/src/proto/policy.rs +++ b/cedar-policy/src/proto/policy.rs @@ -459,7 +459,7 @@ impl From<&ast::LiteralPolicySet> for models::LiteralPolicySet { impl From<&ast::PolicySet> for models::LiteralPolicySet { fn from(v: &ast::PolicySet) -> Self { let templates: HashMap = v - .templates() + .all_templates() .map(|t| (String::from(t.id().as_ref()), models::TemplateBody::from(t))) .collect(); let links: HashMap = v