From 61d2fe439fb69006d50022cab0365857ece57c0e Mon Sep 17 00:00:00 2001 From: Manuel Sopena Ballesteros Date: Sun, 3 Nov 2024 22:04:03 +0100 Subject: [PATCH] refactor: clean compilation warnings --- src/hsm.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/hsm.rs b/src/hsm.rs index 205b91a..f23fdf0 100644 --- a/src/hsm.rs +++ b/src/hsm.rs @@ -272,9 +272,7 @@ pub mod group { .json(&xname) // make sure this is not a string! .send() .await? - .error_for_status()? - .json() - .await?; + .error_for_status()?; // TODO Parse the output!!! // TODO add some debugging output @@ -317,9 +315,7 @@ pub mod group { .header("Authorization", format!("Bearer {}", shasta_token)) .send() .await? - .error_for_status()? - .json() - .await?; + .error_for_status()?; // TODO Parse the output!!! // TODO add some debugging output