aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/surround.rs
diff options
context:
space:
mode:
authorZJPzjp2023-05-11 05:44:52 +0000
committerGitHub2023-05-11 05:44:52 +0000
commit3b8c15618f51889ffd2f2f4be32f8404c1517956 (patch)
treee3083a28d98fe1faf45fc37b9bdd28340fd6186e /helix-core/src/surround.rs
parent1e5997dc98ecd82b09ccee9fbe8d5350fd333fad (diff)
Fix warnings from clippy (#7013)
* Fix warnings from clippy * revert MAIN_SEPARATOR_STR
Diffstat (limited to 'helix-core/src/surround.rs')
-rw-r--r--helix-core/src/surround.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/helix-core/src/surround.rs b/helix-core/src/surround.rs
index f430aee8..b96cce5a 100644
--- a/helix-core/src/surround.rs
+++ b/helix-core/src/surround.rs
@@ -397,15 +397,10 @@ mod test {
let selections: SmallVec<[Range; 1]> = spec
.match_indices('^')
- .into_iter()
.map(|(i, _)| Range::point(i))
.collect();
- let expectations: Vec<usize> = spec
- .match_indices('_')
- .into_iter()
- .map(|(i, _)| i)
- .collect();
+ let expectations: Vec<usize> = spec.match_indices('_').map(|(i, _)| i).collect();
(rope, Selection::new(selections, 0), expectations)
}