From 50680e1e9cbe228af391b7ce34388569a87e3ccd Mon Sep 17 00:00:00 2001 From: hzargar2 Date: Fri, 7 Jul 2023 04:34:09 -0400 Subject: [PATCH] dedup import --- src/resources/webhook_events.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/resources/webhook_events.rs b/src/resources/webhook_events.rs index 030068f71..e50357de4 100644 --- a/src/resources/webhook_events.rs +++ b/src/resources/webhook_events.rs @@ -1,4 +1,3 @@ -use std::collections::HashMap; use chrono::Utc; #[cfg(feature = "webhook-events")] use hmac::{Hmac, Mac}; @@ -7,6 +6,7 @@ use serde_json::Value; #[cfg(feature = "webhook-events")] use sha2::Sha256; use smart_default::SmartDefault; +use std::collections::HashMap; use crate::error::WebhookError; use crate::resources::*; @@ -537,7 +537,6 @@ struct Signature<'r> { #[cfg(feature = "webhook-events")] impl<'r> Signature<'r> { fn parse(raw: &'r str) -> Result, WebhookError> { - use std::collections::HashMap; let headers: HashMap<&str, &str> = raw .split(',') .map(|header| {