Skip to content

Commit

Permalink
fix: fully qualify hidden traits (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhr committed Feb 9, 2022
1 parent b3e3e33 commit 8bc4817
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions impl/src/models/fncmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ impl ToTokens for Fncmd {
};
let case = quote! {
Some(__fncmd_subcmds::#enumitem_name(__fncmd_options)) => {
use fncmd::IntoExitCode;
#mod_name::__fncmd_exec(Some(__fncmd_options)).into_exit_code()
fncmd::IntoExitCode::into_exit_code(#mod_name::__fncmd_exec(Some(__fncmd_options)))
}
};
(import, (enumitem, case))
Expand Down Expand Up @@ -178,8 +177,7 @@ impl ToTokens for Fncmd {
};

let into_exit_code = quote! {
use fncmd::IntoExitCode;
__fncmd_exec_impl().into_exit_code()
fncmd::IntoExitCode::into_exit_code(__fncmd_exec_impl())
};

let exec_body = if !subcmd_cases.is_empty() {
Expand Down

0 comments on commit 8bc4817

Please sign in to comment.