From 698e32a86322592632fe96088bc7a43c5bb4c415 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:05:42 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20cargo-fmt=20auto-update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/internet_identity/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internet_identity/src/main.rs b/src/internet_identity/src/main.rs index 445505e3f8..9b95021e46 100644 --- a/src/internet_identity/src/main.rs +++ b/src/internet_identity/src/main.rs @@ -399,7 +399,8 @@ async fn decode_and_validate_jwt( // Sort Google keys and their properties since they're returned occasionally in a random order fn sort_google_certs(body: Vec) -> Result, String> { // Parse the input JSON - let data: serde_json::Value = serde_json::from_slice(&body).map_err(|_| "Invalid JSON".to_string())?; + let data: serde_json::Value = + serde_json::from_slice(&body).map_err(|_| "Invalid JSON".to_string())?; // Extract and validate the "keys" array let keys = data @@ -430,7 +431,6 @@ fn sort_google_certs(body: Vec) -> Result, String> { serde_json::to_vec(&result).map_err(|_| "Unable to encode JSON".to_string()) } - #[query] fn transform_google_certs(raw: http_request::TransformArgs) -> http_request::HttpResponse { // The expiry header is stripped in this prototype but in prod