Skip to content

Commit

Permalink
remove import
Browse files Browse the repository at this point in the history
  • Loading branch information
jprochazk committed Jun 18, 2024
1 parent d3ed697 commit f3f787f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions garde/src/rules/email.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
use std::fmt::Display;
use std::str::FromStr;

use idna::AsciiDenyList;

use super::pattern::Matcher;
use super::AsStr;
use crate::error::Error;
Expand Down Expand Up @@ -123,7 +121,7 @@ pub fn parse_email(s: &str) -> Result<(), InvalidEmail> {

#[cfg(feature = "email-idna")]
{
match idna::domain_to_ascii_cow(domain.as_bytes(), AsciiDenyList::URL) {
match idna::domain_to_ascii_cow(domain.as_bytes(), idna::AsciiDenyList::URL) {
Ok(domain) => {
if !is_valid_domain(&domain) {
return Err(InvalidEmail::InvalidDomain);
Expand Down

0 comments on commit f3f787f

Please sign in to comment.