Skip to content

Commit f91d02b

Browse files
Remove unused RustdocVisitor::visit_item_inner return type
1 parent d38fd29 commit f91d02b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/librustdoc/visit_ast.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
331331
item: &'tcx hir::Item<'_>,
332332
renamed: Option<Symbol>,
333333
import_id: Option<LocalDefId>,
334-
) -> bool {
334+
) {
335335
debug!("visiting item {:?}", item);
336336
let name = renamed.unwrap_or(item.ident.name);
337337
let tcx = self.cx.tcx;
@@ -448,7 +448,6 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
448448
}
449449
}
450450
}
451-
true
452451
}
453452

454453
fn visit_foreign_item_inner(
@@ -485,9 +484,8 @@ impl<'a, 'tcx> Visitor<'tcx> for RustdocVisitor<'a, 'tcx> {
485484
}
486485

487486
fn visit_item(&mut self, i: &'tcx hir::Item<'tcx>) {
488-
if self.visit_item_inner(i, None, None) {
489-
walk_item(self, i);
490-
}
487+
self.visit_item_inner(i, None, None);
488+
walk_item(self, i);
491489
}
492490

493491
fn visit_mod(&mut self, _: &hir::Mod<'tcx>, _: Span, _: hir::HirId) {

0 commit comments

Comments
 (0)