Skip to content

Commit

Permalink
remove unnecessary borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewmeyer committed Sep 8, 2023
1 parent 07a2239 commit 95b1bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/stripe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async fn stripe_webhook_handler(
.and_then(|v| v.to_str().ok())
.unwrap_or("");
let stripe_webhook_secret = &ctx.config.stripe_webhook_secret;
let event = Webhook::construct_event(&body, stripe_signature, &stripe_webhook_secret)?;
let event = Webhook::construct_event(&body, stripe_signature, stripe_webhook_secret)?;
let _event = Arc::new(event);
Ok(StatusCode::OK)
}
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub enum Error {
#[error("Too Many Requests")]
TooManyRequests,

#[error("Auth0 error")]
#[error("Auth0 Error")]
Auth0,

#[error("Stripe webhook error")]
Expand Down

0 comments on commit 95b1bbc

Please sign in to comment.