diff --git a/src/webhooks.rs b/src/webhooks.rs index cfb2e70..1c39c0e 100644 --- a/src/webhooks.rs +++ b/src/webhooks.rs @@ -269,7 +269,7 @@ async fn handle_webhook_update(args: UpdateArgs) -> Result<()> { .regenerate_shared_secret(args.regenerate_shared_secret) .build(); - payload.endpoint = args.endpoint.clone(); + payload.endpoint.clone_from(&args.endpoint); payload.events = args.categories; payload.enabled = args.enabled;