diff options
Diffstat (limited to 'helix-core/src')
-rw-r--r-- | helix-core/src/comment.rs | 2 | ||||
-rw-r--r-- | helix-core/src/movement.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/helix-core/src/comment.rs b/helix-core/src/comment.rs index 6fc1234d..3d8e1ce3 100644 --- a/helix-core/src/comment.rs +++ b/helix-core/src/comment.rs @@ -72,7 +72,7 @@ pub fn toggle_line_comments(doc: &Rope, selection: &Selection, token: Option<&st min_next_line = end + 1; } - let (commented, to_change, min, margin) = find_line_comment(&token, text, lines); + let (commented, to_change, min, margin) = find_line_comment(token, text, lines); let mut changes: Vec<Change> = Vec::with_capacity(to_change.len()); diff --git a/helix-core/src/movement.rs b/helix-core/src/movement.rs index 74307636..5d080545 100644 --- a/helix-core/src/movement.rs +++ b/helix-core/src/movement.rs @@ -245,6 +245,7 @@ impl CharHelpers for Chars<'_> { // Find our target position(s). let head_start = head; + #[allow(clippy::while_let_on_iterator)] // Clippy's suggestion to fix doesn't work here. while let Some(next_ch) = self.next() { if prev_ch.is_none() || reached_target(target, prev_ch.unwrap(), next_ch) { if head == head_start { |