about summary refs log tree commit diff
path: root/src/librustc_errors
diff options
context:
space:
mode:
authorAnthonyMikh <anthony.mikh@yandex.ru>2019-10-01 00:10:23 +0300
committerGitHub <noreply@github.com>2019-10-01 00:10:23 +0300
commit9d73176978c1eece320fe7786d7f66db2bbb6838 (patch)
tree55db066c95bfed52ab8af93fa884b399a41d0b07 /src/librustc_errors
parent7a807c5b147b0779f70ad713cb642b8702b73740 (diff)
downloadrust-9d73176978c1eece320fe7786d7f66db2bbb6838.tar.gz
rust-9d73176978c1eece320fe7786d7f66db2bbb6838.zip
Remove redundant `.iter_mut()`
Diffstat (limited to 'src/librustc_errors')
-rw-r--r--src/librustc_errors/emitter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs
index cc71a299a73..0e384567846 100644
--- a/src/librustc_errors/emitter.rs
+++ b/src/librustc_errors/emitter.rs
@@ -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