(arg: &str, matches: &ArgMatches)
| 313 | } |
| 314 | |
| 315 | fn parse_http_method(arg: &str, matches: &ArgMatches) -> Result<HttpMethod, CliError> { |
| 316 | Ok(HttpMethod::from_str(parse_string(arg, matches)?.as_str()) |
| 317 | .map_err(|_err| CliError::BadParameter(arg.into()))?) |
| 318 | } |
| 319 | |
| 320 | fn parse_pubkey(arg: &str, matches: &ArgMatches) -> Result<Pubkey, CliError> { |
| 321 | Ok(Pubkey::from_str(parse_string(arg, matches)?.as_str()) |
no test coverage detected