Skip to content

Commit

Permalink
Remove unnecessary clippy allow for old false positive
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
the-mikedavis committed Dec 2, 2024
1 parent 5ba97ba commit 191b0f0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions helix-core/src/comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 191b0f0

Please sign in to comment.