Skip to content

Commit 4296157

Browse files
Fixed location of newlines for parsing_utils::policy_set_to_text (#582)
Signed-off-by: Katherine Hough <[email protected]>
1 parent c2f00f6 commit 4296157

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cedar-drt/fuzz/src/parsing_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct PreservedTemplate<'a> {
7272
annotations: BTreeMap<&'a AnyId, &'a SmolStr>,
7373
}
7474

75-
impl<'a> PartialEq for PreservedTemplate<'a> {
75+
impl PartialEq for PreservedTemplate<'_> {
7676
fn eq(&self, other: &Self) -> bool {
7777
self.template.effect() == other.template.effect()
7878
&& self.template.principal_constraint() == other.template.principal_constraint()
@@ -86,7 +86,7 @@ impl<'a> PartialEq for PreservedTemplate<'a> {
8686
}
8787
}
8888

89-
impl<'a> Hash for PreservedTemplate<'a> {
89+
impl Hash for PreservedTemplate<'_> {
9090
fn hash<H: Hasher>(&self, hasher: &mut H) {
9191
self.template.effect().hash(hasher);
9292
self.template.principal_constraint().hash(hasher);
@@ -131,8 +131,8 @@ pub fn policy_set_to_text(policy_set: &cedar_policy_core::ast::PolicySet) -> Str
131131
if let Some(template) = iter.next() {
132132
to_cedar_text(template, &mut res).unwrap();
133133
for template in iter {
134-
to_cedar_text(template, &mut res).unwrap();
135134
writeln!(&mut res).unwrap();
135+
to_cedar_text(template, &mut res).unwrap();
136136
}
137137
}
138138
res

0 commit comments

Comments
 (0)