From a9b35bdac57f47bd89eb2c9b435a2d4bb7c4c10d Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 19 Jun 2024 07:03:01 +0100 Subject: [PATCH] WIP: forgejo: ??? --- crates/forge-forgejo/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/forge-forgejo/src/lib.rs b/crates/forge-forgejo/src/lib.rs index 9fa6a3e..29a6f73 100644 --- a/crates/forge-forgejo/src/lib.rs +++ b/crates/forge-forgejo/src/lib.rs @@ -36,7 +36,7 @@ impl git::ForgeLike for ForgeJo { tracing::info!(?authorization, %expected, "is message authorised?"); authorization .and_then(|header| header.strip_prefix("Basic ").map(|v| v.to_owned())) - .and_then(|value| config::WebhookAuth::new(value.as_str()).ok()) + .and_then(|value| config::WebhookAuth::try_new(value.as_str()).ok()) .map(|auth| &auth == expected) .unwrap_or(false) }