Skip to content

Commit 3fe51e5

Browse files
committed
Fix clippy::let_and_return
1 parent 082f215 commit 3fe51e5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

rayon-core/src/sleep/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,9 @@ impl Sleep {
110110

111111
#[cold]
112112
fn announce_sleepy(&self) -> JobsEventCounter {
113-
let counters = self
114-
.counters
115-
.increment_jobs_event_counter_if(JobsEventCounter::is_active);
116-
let jobs_counter = counters.jobs_counter();
117-
jobs_counter
113+
self.counters
114+
.increment_jobs_event_counter_if(JobsEventCounter::is_active)
115+
.jobs_counter()
118116
}
119117

120118
#[cold]

0 commit comments

Comments
 (0)