Use '_ for irrelevant lifetimes in Debug impl.

Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
This commit is contained in:
Mara Bos 2022-03-04 10:41:39 +00:00 committed by GitHub
parent 6b46a52577
commit 9099353ea8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))