Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Craig Disselkoen <cdiss@amazon.com>
  • Loading branch information
shaobo-he-aws and cdisselkoen authored Mar 1, 2024
1 parent 1ae316c commit 43adc15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cedar-drt/fuzz/fuzz_targets/roundtrip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn round_trip_json(p: StaticPolicy) -> StaticPolicy {
let est = est::Policy::from(ast::Policy::from(p));
info!("round_trip_json est: {est:?}");
let json = serde_json::to_value(est).expect("failed to convert EST to JSON");
info!("round_trip_json json: {}", json.to_string());
info!("round_trip_json json: {json}");
// read back
let est: est::Policy = serde_json::from_value(json).expect("failed to parse EST from JSON");
info!("round_trip_json roundtripped est: {est:?}");
Expand Down Expand Up @@ -123,7 +123,7 @@ fn round_trip_est(p: &StaticPolicy) -> StaticPolicy {
p, err
)
});
info!("round_trip_est json: {}", json.to_string());
info!("round_trip_est json: {json}");
let est: est::Policy = serde_json::from_value(json).expect("failed to parse EST from JSON");
info!("round_trip_est roundtripped est: {est:?}");
let template = est
Expand Down

0 comments on commit 43adc15

Please sign in to comment.