aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorOmnikar2022-01-23 07:37:23 +0000
committerGitHub2022-01-23 07:37:23 +0000
commitf064894e5778071ef8cc563380f48cfdd9acba59 (patch)
tree18eb4c743e04f6b83268664ea869f3bbc676a2e2 /helix-view
parente2d2f19fd02419b8d144ae7a8a359d31bd773af7 (diff)
Fix Clippy lints in tests (#1563)
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/view.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs
index 89a6c196..adfcd071 100644
--- a/helix-view/src/view.rs
+++ b/helix-view/src/view.rs
@@ -356,7 +356,7 @@ mod tests {
let text = rope.slice(..);
assert_eq!(
- view.text_pos_at_screen_coords(&text, 40, 40 + OFFSET + 0, 4),
+ view.text_pos_at_screen_coords(&text, 40, 40 + OFFSET, 4),
Some(0)
);
@@ -389,7 +389,7 @@ mod tests {
let text = rope.slice(..);
assert_eq!(
- view.text_pos_at_screen_coords(&text, 40, 40 + OFFSET + 0, 4),
+ view.text_pos_at_screen_coords(&text, 40, 40 + OFFSET, 4),
Some(0)
);