Skip to content

Commit 9099353

Browse files
Use '_ for irrelevant lifetimes in Debug impl.
Co-authored-by: Daniel Henry-Mantilla <[email protected]>
1 parent 6b46a52 commit 9099353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/thread/scoped.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ impl<'scope, T> ScopedJoinHandle<'scope, T> {
301301
}
302302
}
303303

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

0 commit comments

Comments
 (0)