tests: ufix: usey macro didn`t recognize qualified path
This commit is contained in:
parent
c1cdaf7667
commit
1f7c18300a
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 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! {
|
||||
|
|
|
|||
Loading…
Reference in a new issue