Skip to content

Commit 31b6b66

Browse files
Fix tooling
Signed-off-by: Jonathan Brouwer <[email protected]>
1 parent 5c7418b commit 31b6b66

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/needless_pass_by_value.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
312312
/// Functions marked with these attributes must have the exact signature.
313313
pub(crate) fn requires_exact_signature(attrs: &[Attribute]) -> bool {
314314
attrs.iter().any(|attr| {
315-
[sym::proc_macro, sym::proc_macro_attribute, sym::proc_macro_derive]
316-
.iter()
317-
.any(|&allow| attr.has_name(allow))
315+
attr.is_proc_macro_attr()
318316
})
319317
}
320318

0 commit comments

Comments
 (0)