about summary refs log tree commit diff
path: root/compiler/rustc_data_structures
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-15 23:56:24 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2023-12-15 23:56:24 +0100
commit8479945c087906a26d045625ac2da4f6383c6c82 (patch)
tree4d6da306c3c000c792ca982e778f6811aaa113ec /compiler/rustc_data_structures
parenta96d57bdb6d2bb6d233d7d5aaefc2995ab99be01 (diff)
downloadrust-8479945c087906a26d045625ac2da4f6383c6c82.tar.gz
rust-8479945c087906a26d045625ac2da4f6383c6c82.zip
NFC don't convert types to identical types
Diffstat (limited to 'compiler/rustc_data_structures')
-rw-r--r--compiler/rustc_data_structures/src/sorted_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/sorted_map.rs b/compiler/rustc_data_structures/src/sorted_map.rs
index 60b343afbed..ed2e558bffa 100644
--- a/compiler/rustc_data_structures/src/sorted_map.rs
+++ b/compiler/rustc_data_structures/src/sorted_map.rs
@@ -198,7 +198,7 @@ impl<K: Ord, V> SortedMap<K, V> {
                 if index == self.data.len() || elements.last().unwrap().0 < self.data[index].0 {
                     // We can copy the whole range without having to mix with
                     // existing elements.
-                    self.data.splice(index..index, elements.into_iter());
+                    self.data.splice(index..index, elements);
                     return;
                 }