clippy::complexity fixes
This commit is contained in:
parent
0157cc977f
commit
e6f77a1787
18 changed files with 23 additions and 30 deletions
|
@ -1766,8 +1766,7 @@ impl CheckAttrVisitor<'tcx> {
|
|||
fn check_macro_export(&self, hir_id: HirId, attr: &Attribute, target: Target) {
|
||||
if target != Target::MacroDef {
|
||||
self.tcx.struct_span_lint_hir(UNUSED_ATTRIBUTES, hir_id, attr.span, |lint| {
|
||||
lint.build(&format!("`#[macro_export]` only has an effect on macro definitions"))
|
||||
.emit();
|
||||
lint.build("`#[macro_export]` only has an effect on macro definitions").emit();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue