From 9a73d3f1b97d41aab101262ce72fc3019c4a0f91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Wed, 7 Oct 2020 14:16:45 +0900 Subject: [PATCH] fix clippy warning --- helix-term/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs index 09d66c5a8..0028521ea 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();