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 b220da62fa
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 module_name = call_path
.get_ident()
.expect("BUG: failed to get identifier for macro call")
.to_string();
.segments
.last()
.map(|l| l.ident.to_string())
.expect("BUG: failed to get identifier for macro call");
if self.vis_pub {
quote! {