File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -542,11 +542,7 @@ impl<'hir> Map<'hir> {
542542 /// Retrieves the `Node` corresponding to `id`, returning `None` if cannot be found.
543543 pub fn find ( & self , hir_id : HirId ) -> Option < Node < ' hir > > {
544544 let node = self . get_entry ( hir_id) . node ;
545- if let Node :: Crate ( ..) = node {
546- None
547- } else {
548- Some ( node)
549- }
545+ if let Node :: Crate ( ..) = node { None } else { Some ( node) }
550546 }
551547
552548 /// Similar to `get_parent`; returns the parent HIR Id, or just `hir_id` if there
Original file line number Diff line number Diff line change @@ -1901,7 +1901,7 @@ pub enum ImplItemKind<'hir> {
19011901 /// An associated constant of the given type, set to the constant result
19021902 /// of the expression.
19031903 Const ( & ' hir Ty < ' hir > , BodyId ) ,
1904- /// A method implementation with the given signature and body.
1904+ /// An associated function implementation with the given signature and body.
19051905 Fn ( FnSig < ' hir > , BodyId ) ,
19061906 /// An associated type.
19071907 TyAlias ( & ' hir Ty < ' hir > ) ,
You can’t perform that action at this time.
0 commit comments