Don't clone paths when collecting diag items

This commit is contained in:
Dániel Buga 2022-09-05 22:29:46 +02:00
parent bf5a98a6d4
commit e655bfe9e1
1 changed files with 1 additions and 1 deletions

View File

@ -2237,7 +2237,7 @@ pub fn diagnostics_items(
None None
} }
}) })
.sorted_by_key(|(path, _)| (*path).clone()) .sorted_by_key(|(path, _)| *path)
.collect() .collect()
} }