diff options
author | Nathan Vegdahl | 2021-07-29 19:41:24 +0000 |
---|---|---|
committer | BenoƮt Cortier | 2021-07-29 20:47:18 +0000 |
commit | 3fda350494449bf5909a0b47f9e2f593fbe615ad (patch) | |
tree | 00297129d7f6560ce9f1e8016e8777f05bcadc9f /helix-core/src/movement.rs | |
parent | 05d20e196f81c8b71c2aecaf46f5d443d6b6b582 (diff) |
Fixes for new clippy lints in Rust 1.54.
Diffstat (limited to 'helix-core/src/movement.rs')
-rw-r--r-- | helix-core/src/movement.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |