Skip to content

Commit 9a12363

Browse files
AzrenbethAzrenbeth
authored andcommitted
Removed unneccessary borrows to make clippy happy
1 parent e33e1db commit 9a12363

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/graphing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub fn make_graphs(before: &Graph, after: &Graph) {
6565
let mut after_nodes_file = File::create("after_nodes.csv").unwrap();
6666

6767
// Write before's information to before_edges and before_nodes
68-
output_csv(&before, &mut before_edges_file, &mut before_nodes_file);
68+
output_csv(before, &mut before_edges_file, &mut before_nodes_file);
6969
// Write afters's information to after_edges and after_nodes
70-
output_csv(&after, &mut after_edges_file, &mut after_nodes_file);
70+
output_csv(after, &mut after_edges_file, &mut after_nodes_file);
7171
}

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,16 +310,16 @@ pub fn run(mut config: Config) {
310310
}
311311
}
312312

313-
check_that_maps_match(&state_group_map, &new_state_group_map);
313+
check_that_maps_match(&state_group_map, new_state_group_map);
314314

315315
// If we are given an output file, we output the changes as SQL. If the
316316
// `transactions` argument is set we wrap each change to a state group in a
317317
// transaction.
318318

319-
output_sql(&mut config, &state_group_map, &new_state_group_map);
319+
output_sql(&mut config, &state_group_map, new_state_group_map);
320320

321321
if config.graphs {
322-
graphing::make_graphs(&state_group_map, &new_state_group_map);
322+
graphing::make_graphs(&state_group_map, new_state_group_map);
323323
}
324324
}
325325

0 commit comments

Comments
 (0)