clippy
This commit is contained in:
parent
08b35291bd
commit
7af5ceac2d
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@ pub async fn webhooks(
|
||||||
.get(SALEOR_API_URL_HEADER)
|
.get(SALEOR_API_URL_HEADER)
|
||||||
.context("missing saleor api url header")?;
|
.context("missing saleor api url header")?;
|
||||||
let event_type = get_webhook_event_type(&headers)?;
|
let event_type = get_webhook_event_type(&headers)?;
|
||||||
|
// In this case I disagree with this hint
|
||||||
|
#[allow(clippy::collapsible_match)]
|
||||||
if let EitherWebhookType::Async(a) = event_type {
|
if let EitherWebhookType::Async(a) = event_type {
|
||||||
match a {
|
match a {
|
||||||
AsyncWebhookEventType::ProductUpdated
|
AsyncWebhookEventType::ProductUpdated
|
||||||
|
|
Loading…
Reference in a new issue