From 6005fd66f2a33de3085b696129b7dd5110924594 Mon Sep 17 00:00:00 2001 From: Yu Shimura Date: Wed, 9 Feb 2022 15:11:05 +0900 Subject: [PATCH] fix: fully qualify hidden traits --- impl/src/models/fncmd.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/impl/src/models/fncmd.rs b/impl/src/models/fncmd.rs index a72c2f9..88f50e5 100644 --- a/impl/src/models/fncmd.rs +++ b/impl/src/models/fncmd.rs @@ -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)) @@ -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() {