Skip to content

Commit

Permalink
dedup import
Browse files Browse the repository at this point in the history
  • Loading branch information
hzargar2 committed Jul 7, 2023
1 parent 3bdf893 commit 50680e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/resources/webhook_events.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::collections::HashMap;
use chrono::Utc;
#[cfg(feature = "webhook-events")]
use hmac::{Hmac, Mac};
Expand All @@ -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::*;
Expand Down Expand Up @@ -537,7 +537,6 @@ struct Signature<'r> {
#[cfg(feature = "webhook-events")]
impl<'r> Signature<'r> {
fn parse(raw: &'r str) -> Result<Signature<'r>, WebhookError> {
use std::collections::HashMap;
let headers: HashMap<&str, &str> = raw
.split(',')
.map(|header| {
Expand Down

0 comments on commit 50680e1

Please sign in to comment.