Skip to content

Commit

Permalink
Remove redundant .iter_mut()
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyMikh committed Sep 30, 2019
1 parent 7a807c5 commit 9d73176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_errors/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ impl FileWithAnnotatedLines {
line_index: usize,
ann: Annotation) {

for slot in file_vec.iter_mut() {
for slot in file_vec {
// Look through each of our files for the one we're adding to
if slot.file.name == file.name {
// See if we already have a line for it
Expand Down

0 comments on commit 9d73176

Please sign in to comment.