From 43adc155c3c9da44111b4df0ec6c0a0dbcf8f583 Mon Sep 17 00:00:00 2001 From: shaobo-he-aws <130499339+shaobo-he-aws@users.noreply.github.com> Date: Fri, 1 Mar 2024 10:50:42 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Craig Disselkoen --- cedar-drt/fuzz/fuzz_targets/roundtrip.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cedar-drt/fuzz/fuzz_targets/roundtrip.rs b/cedar-drt/fuzz/fuzz_targets/roundtrip.rs index 28f23748f..87ebebddb 100644 --- a/cedar-drt/fuzz/fuzz_targets/roundtrip.rs +++ b/cedar-drt/fuzz/fuzz_targets/roundtrip.rs @@ -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:?}"); @@ -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