on master help sign in
Use array::IntoIter.
commit5e6b46e7c5e322528784338222808bfc0266ef05 authorBlaž Hrastnik <blaz@mxxn.io> dateSat 15 May 2021, 10:52 (5 years ago) parent354b822
1 file changed+1−1
helix-term/src/commands.rs+1−1
helix-term/src/commands.rs+1−1
@@ -829,7 +829,7 @@ pub fn append_mode(cx: &mut Context) {
829829 if selection.iter().any(|range| range.head == end) {
830830 let transaction = Transaction::change(
831831 doc.text(),
832− vec![(end, end, Some(Tendril::from_char('\n')))].into_iter(),
832+ std::array::IntoIter::new([(end, end, Some(Tendril::from_char('\n')))]),
833833 );
834834 doc.apply(&transaction, view.id);
835835 }