diff options
author | Philipp Mildenberger | 2023-03-27 23:33:55 +0000 |
---|---|---|
committer | GitHub | 2023-03-27 23:33:55 +0000 |
commit | 198ff2c3f9c56afe4649cc0ecbb09ded5fd4a7c7 (patch) | |
tree | 5e896645a77ce94046ae39dbe868e6574d663a93 /helix-core/src | |
parent | 5323020c3f02b178f2b6807f13d89bf7f40d3cce (diff) |
Fix clippy lints (#6454)
Diffstat (limited to 'helix-core/src')
-rw-r--r-- | helix-core/src/position.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/position.rs b/helix-core/src/position.rs index 3902b4d4..04bf8c31 100644 --- a/helix-core/src/position.rs +++ b/helix-core/src/position.rs @@ -309,8 +309,8 @@ pub fn pos_at_visual_coords(text: RopeSlice, coords: Position, tab_width: usize) /// on the visual line is returned if the visual line contains any text: /// If the visual line at the specified offset is a virtual line generated by a `LineAnnotation` /// the previous char_index is returned, together with the remaining vertical offset (`virtual_lines`) -pub fn char_idx_at_visual_offset<'a>( - text: RopeSlice<'a>, +pub fn char_idx_at_visual_offset( + text: RopeSlice, mut anchor: usize, mut row_offset: isize, column: usize, |