From 9d73176978c1eece320fe7786d7f66db2bbb6838 Mon Sep 17 00:00:00 2001 From: AnthonyMikh Date: Tue, 1 Oct 2019 00:10:23 +0300 Subject: [PATCH] Remove redundant `.iter_mut()` --- src/librustc_errors/emitter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index cc71a299a73c..0e384567846e 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