From 9ed8eef8b06d3652247750ff20d263bd021e3171 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 10 Oct 2024 15:03:49 +0200 Subject: [PATCH] Apply clippy suggestions --- src/custom_service_account.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/custom_service_account.rs b/src/custom_service_account.rs index a138f6f..8304c93 100644 --- a/src/custom_service_account.rs +++ b/src/custom_service_account.rs @@ -181,7 +181,7 @@ impl<'a> Claims<'a> { let mut jwt = String::new(); URL_SAFE.encode_string(GOOGLE_RS256_HEAD, &mut jwt); jwt.push('.'); - URL_SAFE.encode_string(&serde_json::to_string(self).unwrap(), &mut jwt); + URL_SAFE.encode_string(serde_json::to_string(self).unwrap(), &mut jwt); let signature = signer.sign(jwt.as_bytes())?; jwt.push('.');