remove redundant branch
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
parent
17e86d9ff9
commit
f1c256d168
2 changed files with 4 additions and 15 deletions
|
@ -86,13 +86,13 @@ fn debugger_visualizers<'tcx>(tcx: TyCtxt<'tcx>, cnum: CrateNum) -> Vec<Debugger
|
|||
let mut debugger_visualizers = FxHashSet::default();
|
||||
|
||||
// Collect debugger visualizers in this crate.
|
||||
tcx.hir().for_each_module(
|
||||
|id| check_for_debugger_visualizer(
|
||||
tcx.hir().for_each_module(|id| {
|
||||
check_for_debugger_visualizer(
|
||||
tcx,
|
||||
tcx.hir().local_def_id_to_hir_id(id),
|
||||
&mut debugger_visualizers
|
||||
&mut debugger_visualizers,
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
// Collect debugger visualizers on the crate attributes.
|
||||
check_for_debugger_visualizer(tcx, CRATE_HIR_ID, &mut debugger_visualizers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue