]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/dataflow/graphviz.rs
Don't redundantly repeat field names (clippy::redundant_field_names)
[rust.git] / src / librustc_mir / dataflow / graphviz.rs
index 89a0a08a5c6c8246a8b4ce947a744d7ec806fc88..a9ef7ef6c528a2a93aa79472e0de2de4470a6b33 100644 (file)
@@ -1,7 +1,7 @@
 //! Hook into libgraphviz for rendering dataflow graphs for MIR.
 
-use rustc::hir::def_id::DefId;
 use rustc::mir::{BasicBlock, Body};
+use rustc_hir::def_id::DefId;
 
 use std::fs;
 use std::io;
@@ -72,7 +72,7 @@ pub struct Edge {
 
 fn outgoing(body: &Body<'_>, bb: BasicBlock) -> Vec<Edge> {
     (0..body[bb].terminator().successors().count())
-        .map(|index| Edge { source: bb, index: index })
+        .map(|index| Edge { source: bb, index })
         .collect()
 }