Use array::IntoIter.
This commit is contained in:
parent
354b822d21
commit
5e6b46e7c5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue