Unnamed repository; edit this file 'description' to name the repository.
Remove unnecessary clippy allow for old false positive
The clippy version after the recent MSRV bump no longer emits `redundant_clone` warnings for these lines. We allowed these previously since they were emitted as false positives.
Michael Davis 2024-12-02
parent 5ba97ba · commit 191b0f0
-rw-r--r--helix-core/src/comment.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/helix-core/src/comment.rs b/helix-core/src/comment.rs
index 42702187..5a34e7e1 100644
--- a/helix-core/src/comment.rs
+++ b/helix-core/src/comment.rs
@@ -147,10 +147,7 @@ pub fn find_block_comments(
let mut only_whitespace = true;
let mut comment_changes = Vec::with_capacity(selection.len());
let default_tokens = tokens.first().cloned().unwrap_or_default();
- // TODO: check if this can be removed on MSRV bump
- #[allow(clippy::redundant_clone)]
let mut start_token = default_tokens.start.clone();
- #[allow(clippy::redundant_clone)]
let mut end_token = default_tokens.end.clone();
let mut tokens = tokens.to_vec();