don't restuct references just to reborrow
This commit is contained in:
parent
35a99eef32
commit
a108d55ce6
22 changed files with 41 additions and 42 deletions
|
@ -249,7 +249,7 @@ fn dump_graph(query: &DepGraphQuery) {
|
|||
// dump a .txt file with just the edges:
|
||||
let txt_path = format!("{}.txt", path);
|
||||
let mut file = BufWriter::new(File::create(&txt_path).unwrap());
|
||||
for &(ref source, ref target) in &edges {
|
||||
for (source, target) in &edges {
|
||||
write!(file, "{:?} -> {:?}\n", source, target).unwrap();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue