From ec23a5d64c1a07657be12deab809d9b1b9737e98 Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Sun, 17 Sep 2023 20:07:54 -0600 Subject: [PATCH] Prepend `super::` to function calls --- rstest_macros/src/render/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rstest_macros/src/render/mod.rs b/rstest_macros/src/render/mod.rs index c293e407..ef335891 100644 --- a/rstest_macros/src/render/mod.rs +++ b/rstest_macros/src/render/mod.rs @@ -193,9 +193,9 @@ fn resolve_default_test_attr(is_async: bool) -> TokenStream { fn render_exec_call(fn_path: Path, args: &[Ident], is_async: bool) -> TokenStream { if is_async { - quote! {#fn_path(#(#args),*).await} + quote! {super::#fn_path(#(#args),*).await} } else { - quote! {#fn_path(#(#args),*)} + quote! {super::#fn_path(#(#args),*)} } }