diff options
author | Kirawi | 2021-12-18 05:57:49 +0000 |
---|---|---|
committer | GitHub | 2021-12-18 05:57:49 +0000 |
commit | 02fc52f6d52c91c691dd2b7f9312b81aa20b8cbb (patch) | |
tree | 232f51c571f4b3c7f693559f7e8cb6205501cb17 /helix-term/src/commands.rs | |
parent | a66833590c7dc87b5e015266bace900d46b98b34 (diff) |
Apply recent nightly suggestions (#1286)
array iterators are now implicit
Diffstat (limited to 'helix-term/src/commands.rs')
-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 cd566720..48dccff2 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1938,7 +1938,7 @@ fn append_mode(cx: &mut Context) { if !last_range.is_empty() && last_range.head == end { let transaction = Transaction::change( doc.text(), - std::array::IntoIter::new([(end, end, Some(doc.line_ending.as_str().into()))]), + [(end, end, Some(doc.line_ending.as_str().into()))].into_iter(), ); doc.apply(&transaction, view.id); } |