We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41453d2 commit 3f13ba8Copy full SHA for 3f13ba8
src/librustc/hir/map/mod.rs
@@ -186,12 +186,12 @@ struct ParentHirIterator<'map, 'hir> {
186
}
187
188
impl<'map, 'hir> ParentHirIterator<'map, 'hir> {
189
- fn new(current_id: HirId, map: &'map Map<'hir>) -> ParentHirIterator<'map, 'hir> {
190
- ParentHirIterator { current_id, map }
+ fn new(current_id: HirId, map: &'map Map<'hir>) -> Self {
+ Self { current_id, map }
191
192
193
194
-impl<'map, 'hir> Iterator for ParentHirIterator<'map, 'hir> {
+impl<'hir> Iterator for ParentHirIterator<'_, 'hir> {
195
type Item = (HirId, Node<'hir>);
196
197
fn next(&mut self) -> Option<Self::Item> {
0 commit comments