Skip to content

Commit

Permalink
Removed redundant struct creation
Browse files Browse the repository at this point in the history
version bump
  • Loading branch information
Eric Biggs committed Sep 15, 2024
1 parent ad9861d commit e97a1b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
8 changes: 1 addition & 7 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<UpdateUserPayload>(&updated_user)?;

let response = self
.client
Expand Down

0 comments on commit e97a1b2

Please sign in to comment.