From 5e6b46e7c5e322528784338222808bfc0266ef05 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= <blaz@mxxn.io>
Date: Sat, 15 May 2021 10:52:07 +0900
Subject: [PATCH] Use array::IntoIter.

---
 helix-term/src/commands.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index fc3c2561..c285fd41 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -829,7 +829,7 @@ pub fn append_mode(cx: &mut Context) {
     if selection.iter().any(|range| range.head == end) {
         let transaction = Transaction::change(
             doc.text(),
-            vec![(end, end, Some(Tendril::from_char('\n')))].into_iter(),
+            std::array::IntoIter::new([(end, end, Some(Tendril::from_char('\n')))]),
         );
         doc.apply(&transaction, view.id);
     }