Use std::result::Result to avoid expanding to type aliases

Fixes: #97
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2021-07-16 00:17:13 -03:00 committed by Erick Tryzelaar
parent 329890897a
commit e4ce5d2f3e

View File

@ -435,7 +435,7 @@ fn impl_from_args_struct_redact_arg_values<'a>(
let help = help::help(errors, cmd_name_str_array_ident, type_attrs, &fields, subcommand);
let method_impl = quote_spanned! { impl_span =>
fn redact_arg_values(__cmd_name: &[&str], __args: &[&str]) -> Result<Vec<String>, argh::EarlyExit> {
fn redact_arg_values(__cmd_name: &[&str], __args: &[&str]) -> std::result::Result<Vec<String>, argh::EarlyExit> {
#( #init_fields )*
argh::parse_struct_args(