tests: ufix: usey macro didn`t recognize qualified path
This commit is contained in:
parent
36f579ad0d
commit
b220da62fa
1 changed files with 4 additions and 3 deletions
|
|
@ -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! {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue