Skip to content

Commit 3f13ba8

Browse files
committed
hir::map: elide & simplify
1 parent 41453d2 commit 3f13ba8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/hir/map/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ struct ParentHirIterator<'map, 'hir> {
186186
}
187187

188188
impl<'map, 'hir> ParentHirIterator<'map, 'hir> {
189-
fn new(current_id: HirId, map: &'map Map<'hir>) -> ParentHirIterator<'map, 'hir> {
190-
ParentHirIterator { current_id, map }
189+
fn new(current_id: HirId, map: &'map Map<'hir>) -> Self {
190+
Self { current_id, map }
191191
}
192192
}
193193

194-
impl<'map, 'hir> Iterator for ParentHirIterator<'map, 'hir> {
194+
impl<'hir> Iterator for ParentHirIterator<'_, 'hir> {
195195
type Item = (HirId, Node<'hir>);
196196

197197
fn next(&mut self) -> Option<Self::Item> {

0 commit comments

Comments
 (0)