about summary refs log tree commit diff
path: root/compiler/rustc_span
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-12 19:49:53 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2022-12-12 19:49:53 +0100
commit2ea368e53c755fb13d3ad5cd59370a3f7ad4e8c0 (patch)
tree10026afe25c4eca8d57fb9444793f89ca0581396 /compiler/rustc_span
parent37d7de337903a558dbeb1e82c844fe915ab8ff25 (diff)
downloadrust-2ea368e53c755fb13d3ad5cd59370a3f7ad4e8c0.tar.gz
rust-2ea368e53c755fb13d3ad5cd59370a3f7ad4e8c0.zip
minor code cleanups
Diffstat (limited to 'compiler/rustc_span')
-rw-r--r--compiler/rustc_span/src/source_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/source_map.rs b/compiler/rustc_span/src/source_map.rs
index 43a31722707..a4e0f54d276 100644
--- a/compiler/rustc_span/src/source_map.rs
+++ b/compiler/rustc_span/src/source_map.rs
@@ -1150,7 +1150,7 @@ impl FilePathMapping {
             // NOTE: We are iterating over the mapping entries from last to first
             //       because entries specified later on the command line should
             //       take precedence.
-            for &(ref from, ref to) in mapping.iter().rev() {
+            for (from, to) in mapping.iter().rev() {
                 debug!("Trying to apply {from:?} => {to:?}");
 
                 if let Ok(rest) = path.strip_prefix(from) {