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.
This commit is contained in:
parent
5ba97ba41e
commit
191b0f08a9
1 changed files with 0 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue