1
Fork 0

minor code cleanups

This commit is contained in:
Matthias Krüger 2022-12-12 19:49:53 +01:00
parent 37d7de3379
commit 2ea368e53c
8 changed files with 11 additions and 20 deletions

View file

@ -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) {