From 191b0f08a9557b4989d8cbb6ba9c674f98f1a762 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 2 Dec 2024 09:23:42 -0500 Subject: [PATCH] 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. --- helix-core/src/comment.rs | 3 --- 1 file changed, 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();