pub fn url(config: &Config) -> CargoResult<Url> {
        let result = match try!(config.get_string("registry.index")) {
            Some((value, path)) => value.to_url_with_base(path.as_path().clone()),
            None => DEFAULT.to_string().to_url(),
        };

        Ok(try!(result.map_err(human)))
    }
/// Get the configured default registry URL.
///
/// This is the main cargo registry by default, but it can be overridden in
/// a .cargo/config
Get the configured default registry URL.
This is the main cargo registry by default, but it can be overridden in
a .cargo/config
Get the configured default registry URL . This is the main cargo registry by default but it can be overridden in a . cargo / config
pub fn url(config: &Config) -> CargoResult<Url> {
        let result = match try!(config.get_string("registry.index")) {
            Some((value, path)) => value.to_url_with_base(path.as_path().clone()),
            None => DEFAULT.to_string().to_url(),
        };
        Ok(try!(result.map_err(human)))
    }
pub fn url ( config : & Config ) -> CargoResult < Url > { let result = match try ! ( config get_string ( " " ) ) { Some ( ( value , path ) ) => value . to_url_with_base ( path . as_path ( ) . clone ( ) ) , None => DEFAULT . to_string ( ) . to_url ( ) , } ; Ok ( try ! ( result map_err ( human ) ) ) }
Get the configured default registry URL.
Get the configured default registry URL .
config
&Config
config
&Config