tests: ufix: usey macro didn`t recognize qualified path

This commit is contained in:
Yiffy Dev 2024-11-03 17:12:01 +05:00 • committed by spushk
commit e3fd72c471
Signed by: spushk
GPG key ID: 7797B761E105E8AA

View file

@ -36,9 +36,10 @@ impl StyleCall {
let call_syntax = quote! {#call_path #call_bang (syntax)}; let call_syntax = quote! {#call_path #call_bang (syntax)};
let module_name = call_path let module_name = call_path
.get_ident() .segments
.expect("BUG: failed to get identifier for macro call") .last()
.to_string(); .map(|l| l.ident.to_string())
.expect("BUG: failed to get identifier for macro call");
if self.vis_pub { if self.vis_pub {
quote! { quote! {