diff --git a/cli/src/main.rs b/cli/src/main.rs index ca783b3e..7a2fdc58 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -596,19 +596,8 @@ impl Init { }; let email = || { - Input::with_theme(&ColorfulTheme::default()) + Input::::with_theme(&ColorfulTheme::default()) .with_prompt("Author email") - .validate_with({ - move |input: &String| -> Result<(), &str> { - if (input.contains('@') && input.contains('.')) - || input.trim().is_empty() - { - Ok(()) - } else { - Err("This is not a valid email address") - } - } - }) .allow_empty(true) .interact_text() .map(|e| (!e.trim().is_empty()).then_some(e))