File tree 2 files changed +2
-6
lines changed
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> {
542
542
/// Retrieves the `Node` corresponding to `id`, returning `None` if cannot be found.
543
543
pub fn find ( & self , hir_id : HirId ) -> Option < Node < ' hir > > {
544
544
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) }
550
546
}
551
547
552
548
/// 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> {
1901
1901
/// An associated constant of the given type, set to the constant result
1902
1902
/// of the expression.
1903
1903
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.
1905
1905
Fn ( FnSig < ' hir > , BodyId ) ,
1906
1906
/// An associated type.
1907
1907
TyAlias ( & ' hir Ty < ' hir > ) ,
You can’t perform that action at this time.
0 commit comments