Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavio committed Apr 5, 2024
1 parent c8074e0 commit d350104
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/subscriptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ pub async fn subscribe(
email_client: web::Data<EmailClient>,
base_url: web::Data<ApplicationBaseUrl>,
) -> Result<HttpResponse, SubscriptionError> {
let new_subscriber = form.0.try_into().map_err(SubscriptionError::ValidationError)?;
let new_subscriber = form
.0
.try_into()
.map_err(SubscriptionError::ValidationError)?;
let mut transaction = pool
.begin()
.await
Expand Down

0 comments on commit d350104

Please sign in to comment.