review comments
This commit is contained in:
parent
c9d05aa9ce
commit
b21408527a
5 changed files with 34 additions and 32 deletions
|
|
@ -2751,9 +2751,8 @@ pub enum Node<'hir> {
|
|||
Crate,
|
||||
}
|
||||
|
||||
impl<'hir> Node<'hir> {
|
||||
impl Node<'_> {
|
||||
pub fn ident(&self) -> Option<Ident> {
|
||||
|
||||
match self {
|
||||
Node::TraitItem(TraitItem { ident, .. }) |
|
||||
Node::ImplItem(ImplItem { ident, .. }) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue