From e97a1b22427fa386ce679972414560e508224e50 Mon Sep 17 00:00:00 2001 From: Eric Biggs Date: Sat, 14 Sep 2024 04:03:38 -0400 Subject: [PATCH] Removed redundant struct creation version bump --- Cargo.toml | 2 +- src/client.rs | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d6d9295..ecd65b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "supabase-auth" authors = ["Eric Biggs"] description = "Supabase Auth implementation following the official client libraries." readme = "README.md" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MIT OR Apache-2.0" keywords = ["supabase", "supabase-auth", "authentication", "auth"] diff --git a/src/client.rs b/src/client.rs index 1eea58e..b11af9f 100644 --- a/src/client.rs +++ b/src/client.rs @@ -336,13 +336,7 @@ impl AuthClient { HeaderValue::from_str(&format!("Bearer {}", &bearer_token.into()))?, ); - let payload = UpdateUserPayload { - email: updated_user.email, - password: updated_user.password, - data: updated_user.data, - }; - - let body = serde_json::to_string(&payload)?; + let body = serde_json::to_string::(&updated_user)?; let response = self .client