Skip to content

Commit

Permalink
Use '_ for irrelevant lifetimes in Debug impl.
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
  • Loading branch information
m-ou-se and danielhenrymantilla committed Mar 4, 2022
1 parent 6b46a52 commit 9099353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/thread/scoped.rs
Expand Up @@ -301,7 +301,7 @@ impl<'scope, T> ScopedJoinHandle<'scope, T> {
}
}

impl<'scope, 'env> fmt::Debug for Scope<'scope, 'env> {
impl fmt::Debug for Scope<'_, '_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Scope")
.field("num_running_threads", &self.data.num_running_threads.load(Ordering::Relaxed))
Expand Down

0 comments on commit 9099353

Please sign in to comment.