diff options
author | Blaž Hrastnik | 2020-10-07 05:16:45 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-10-07 05:16:45 +0000 |
commit | 9a73d3f1b97d41aab101262ce72fc3019c4a0f91 (patch) | |
tree | 700dbd0d7f473fe65ff45715e4fc984f7b21181e /helix-term | |
parent | 03795e56742e5a6047e63467ef2912c2306c112d (diff) |
fix clippy warning
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs index 09d66c5a..0028521e 100644 --- a/helix-term/src/editor.rs +++ b/helix-term/src/editor.rs @@ -91,7 +91,7 @@ impl Editor { let range = { // calculate viewport byte ranges - let start = view.state.doc().line_to_byte(view.first_line.into()); + let start = view.state.doc().line_to_byte(view.first_line); let end = view.state.doc().line_to_byte(last_line) + view.state.doc().line(last_line).len_bytes(); |