From 80eb655da1d4c002993f354c135dfbfb1bdf1a88 Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Fri, 16 Feb 2024 19:00:18 +0000 Subject: [PATCH] cargo fmt --- cedar-policy-generators/src/policy.rs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/cedar-policy-generators/src/policy.rs b/cedar-policy-generators/src/policy.rs index 60f060e21..5dad29598 100644 --- a/cedar-policy-generators/src/policy.rs +++ b/cedar-policy-generators/src/policy.rs @@ -4,7 +4,8 @@ use crate::hierarchy::Hierarchy; use crate::size_hint_utils::size_hint_for_ratio; use arbitrary::{Arbitrary, Unstructured}; use cedar_policy_core::ast::{ - Annotation, Annotations, AnyId, Effect, EntityUID, Expr, Name, Policy, PolicyID, PolicySet, StaticPolicy, Template, + Annotation, Annotations, AnyId, Effect, EntityUID, Expr, Name, Policy, PolicyID, PolicySet, + StaticPolicy, Template, }; use cedar_policy_core::{ast, est}; use serde::Serialize; @@ -123,12 +124,18 @@ impl GeneratedPolicy { } } -fn convert_annotations( - annotations: HashMap, -) -> Annotations { +fn convert_annotations(annotations: HashMap) -> Annotations { annotations .into_iter() - .map(|(k, v)| (k, Annotation { val: v.into(), loc: None })) + .map(|(k, v)| { + ( + k, + Annotation { + val: v.into(), + loc: None, + }, + ) + }) .collect() }