remove tuple

This commit is contained in:
Centri3 2023-06-03 14:38:16 -05:00
parent 497f37793e
commit 05bfcbd911
3 changed files with 9 additions and 8 deletions

View file

@ -358,15 +358,16 @@ impl<'cx> WithSearchPat for (&FnKind<'cx>, &Body<'cx>, HirId, Span) {
}
}
impl<'cx> WithSearchPat for (&Attribute, &LateContext<'cx>) {
// `Attribute` does not have the `hir` associated lifetime, so we cannot use the macro
impl<'cx> WithSearchPat for &'cx Attribute {
type Context = LateContext<'cx>;
fn search_pat(&self, _cx: &Self::Context) -> (Pat, Pat) {
attr_search_pat(self.0)
attr_search_pat(self)
}
fn span(&self) -> Span {
self.0.span
self.span
}
}