From 257f87c3f9034fb2dc13d1e0c42e99842dda5b34 Mon Sep 17 00:00:00 2001 From: Benno van den Berg Date: Fri, 3 May 2024 13:20:31 +0200 Subject: [PATCH] cargo clippy --fix (#292) --- src/webhooks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;