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