diff --git a/helix-core/src/graphemes.rs b/helix-core/src/graphemes.rs index ec4e9d243..42e27b905 100644 --- a/helix-core/src/graphemes.rs +++ b/helix-core/src/graphemes.rs @@ -165,7 +165,7 @@ pub fn new<'b>(slice: &RopeSlice<'b>) -> RopeGraphemes<'b> { let first_chunk = chunks.next().unwrap_or(""); RopeGraphemes { text: *slice, - chunks: chunks, + chunks, cur_chunk: first_chunk, cur_chunk_start: 0, cursor: GraphemeCursor::new(0, slice.len_bytes(), true),