Skip to content

Commit f3f787f

Browse files
committed
remove import
1 parent d3ed697 commit f3f787f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

garde/src/rules/email.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
use std::fmt::Display;
1616
use std::str::FromStr;
1717

18-
use idna::AsciiDenyList;
19-
2018
use super::pattern::Matcher;
2119
use super::AsStr;
2220
use crate::error::Error;
@@ -123,7 +121,7 @@ pub fn parse_email(s: &str) -> Result<(), InvalidEmail> {
123121

124122
#[cfg(feature = "email-idna")]
125123
{
126-
match idna::domain_to_ascii_cow(domain.as_bytes(), AsciiDenyList::URL) {
124+
match idna::domain_to_ascii_cow(domain.as_bytes(), idna::AsciiDenyList::URL) {
127125
Ok(domain) => {
128126
if !is_valid_domain(&domain) {
129127
return Err(InvalidEmail::InvalidDomain);

0 commit comments

Comments
 (0)