Skip to content

Commit ab70553

Browse files
committed
foiled again (forgot to run cargo test)
1 parent 0086b6a commit ab70553

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ impl<'cx> WithSearchPat for (&Attribute, &LateContext<'cx>) {
344344
type Context = LateContext<'cx>;
345345

346346
fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat) {
347-
attr_search_pat(&self.0)
347+
attr_search_pat(self.0)
348348
}
349349

350350
fn span(&self) -> Span {

tests/ui/allow_attributes.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct CfgT;
2525

2626
fn ignore_external() {
2727
external! {
28-
#[allow(clippy::needless_borrow)]
28+
#[allow(clippy::needless_borrow)] // Should not lint
2929
fn a() {}
3030
}
3131
}

0 commit comments

Comments
 (0)