diff options
author | Blaž Hrastnik | 2021-05-15 01:52:07 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-05-15 01:52:07 +0000 |
commit | 5e6b46e7c5e322528784338222808bfc0266ef05 (patch) | |
tree | d21b31dfe782d00e816d785bc330c963998f4c90 /helix-term/src | |
parent | 354b822d21ca82dc6a761d67cd92e4e00f855da5 (diff) |
Use array::IntoIter.
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |