Skip to content

Commit a79b53a

Browse files
committed
Fix clippy::let_and_return
(cherry picked from commit 3fe51e5)
1 parent 5dd3ddc commit a79b53a

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
@@ -166,11 +166,9 @@ impl Sleep {
166166

167167
#[cold]
168168
fn announce_sleepy(&self) -> JobsEventCounter {
169-
let counters = self
170-
.counters
171-
.increment_jobs_event_counter_if(JobsEventCounter::is_active);
172-
let jobs_counter = counters.jobs_counter();
173-
jobs_counter
169+
self.counters
170+
.increment_jobs_event_counter_if(JobsEventCounter::is_active)
171+
.jobs_counter()
174172
}
175173

176174
#[cold]

0 commit comments

Comments
 (0)