aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorKirawi2021-12-18 05:57:49 +0000
committerGitHub2021-12-18 05:57:49 +0000
commit02fc52f6d52c91c691dd2b7f9312b81aa20b8cbb (patch)
tree232f51c571f4b3c7f693559f7e8cb6205501cb17 /helix-term/src/ui
parenta66833590c7dc87b5e015266bace900d46b98b34 (diff)
Apply recent nightly suggestions (#1286)
array iterators are now implicit
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/prompt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs
index 07e1b33c..29e0339a 100644
--- a/helix-term/src/ui/prompt.rs
+++ b/helix-term/src/ui/prompt.rs
@@ -127,7 +127,7 @@ impl Prompt {
let mut char_position = char_indices
.iter()
.position(|(idx, _)| *idx == self.cursor)
- .unwrap_or_else(|| char_indices.len());
+ .unwrap_or(char_indices.len());
for _ in 0..rep {
// Skip any non-whitespace characters