Skip to content

Commit

Permalink
allow clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
  • Loading branch information
fenollp committed Mar 27, 2024
1 parent b6c21ad commit 9785188
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tokio/src/task/task_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ impl<T: Copy + 'static> LocalKey<T> {
}
}

#[allow(clippy::should_implement_trait)]
impl<T: Clone + 'static> LocalKey<T> {
/// Returns a clone of the task-local value
/// if the task-local value implements `Clone`.
Expand Down

0 comments on commit 9785188

Please sign in to comment.