diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-03-04 10:41:39 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-04 10:41:39 +0000 |
| commit | 9099353ea88c72cb5a62fd7c2af187410295cf5b (patch) | |
| tree | 7224d96db42bfff453e4cd3e62eb17aacb02717a /library/std/src/thread | |
| parent | 6b46a52577e3fb18a45527a105a16b216b0e45f7 (diff) | |
| download | rust-9099353ea88c72cb5a62fd7c2af187410295cf5b.tar.gz rust-9099353ea88c72cb5a62fd7c2af187410295cf5b.zip | |
Use '_ for irrelevant lifetimes in Debug impl.
Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
Diffstat (limited to 'library/std/src/thread')
| -rw-r--r-- | library/std/src/thread/scoped.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/scoped.rs b/library/std/src/thread/scoped.rs index e066f97c8e6..35082495b18 100644 --- a/library/std/src/thread/scoped.rs +++ b/library/std/src/thread/scoped.rs @@ -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)) |
