From c6eb1e73a0f2486ad7a7c884aca8138842822d97 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Tue, 20 Aug 2024 17:55:16 -0500 Subject: [PATCH] rest: cleanup --- crates/sui-rest-api/src/checkpoints.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/sui-rest-api/src/checkpoints.rs b/crates/sui-rest-api/src/checkpoints.rs index f6939b76c8b5f..334e1b4cebbe0 100644 --- a/crates/sui-rest-api/src/checkpoints.rs +++ b/crates/sui-rest-api/src/checkpoints.rs @@ -59,7 +59,7 @@ async fn get_checkpoint_full( Path(checkpoint_id): Path, accept: AcceptFormat, State(state): State, -) -> Result> { +) -> Result> { let verified_summary = match checkpoint_id { CheckpointId::SequenceNumber(s) => { // Since we need object contents we need to check for the lowest available checkpoint @@ -85,8 +85,7 @@ async fn get_checkpoint_full( let checkpoint_data = state .inner() - .get_checkpoint_data(verified_summary, checkpoint_contents)? - .into(); + .get_checkpoint_data(verified_summary, checkpoint_contents)?; match accept { AcceptFormat::Json => ResponseContent::Json(checkpoint_data),