mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
refactor: leverage HasAttrs
for code brevity
This commit is contained in:
parent
2e7d2c2d04
commit
356d12eae4
3 changed files with 47 additions and 36 deletions
|
@ -129,6 +129,13 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<L, R> HasAttrs for Either<L, R>
|
||||
where
|
||||
L: HasAttrs,
|
||||
R: HasAttrs,
|
||||
{
|
||||
}
|
||||
|
||||
mod support {
|
||||
use super::{AstChildren, AstNode, SyntaxKind, SyntaxNode, SyntaxToken};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue