fn valid_url(url: String) -> Result<(), String> {
    match Url::parse(&url) {
        Ok(_) => Ok(()),
        Err(_) => Err("Please provide a valid url".to_string())
    }
}
/// Validate the correctness of the user provided URL
Validate the correctness of the user provided URL
Validate the correctness of the user provided URL
fn valid_url(url: String) -> Result<(), String> {
    match Url::parse(&url) {
        Ok(_) => Ok(()),
        Err(_) => Err("Please provide a valid url".to_string())
    }
}
fn valid_url ( url : String ) -> Result < ( ) , String > { match Url :: parse ( & url ) { Ok ( _ ) => Ok ( ( ) ) , Err ( _ ) => Err ( " " . to_string ( ) ) } }
Validate the correctness of the user provided URL
Validate the correctness of the user provided URL
url
String
url
String