review comments

This commit is contained in:
Esteban Küber 2019-09-04 23:41:51 -07:00
parent c9d05aa9ce
commit b21408527a
5 changed files with 34 additions and 32 deletions

View file

@ -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, .. }) |