Skip to content

Commit c8bb6ca

Browse files
committed
Fix clippy::unnecessary_cast
1 parent 5814900 commit c8bb6ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rayon-core/src/sleep/counters.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,12 @@ impl AtomicCounters {
212212

213213
#[inline]
214214
fn select_thread(word: usize, shift: usize) -> usize {
215-
((word >> shift) as usize) & THREADS_MAX
215+
(word >> shift) & THREADS_MAX
216216
}
217217

218218
#[inline]
219219
fn select_jec(word: usize) -> usize {
220-
(word >> JEC_SHIFT) as usize
220+
word >> JEC_SHIFT
221221
}
222222

223223
impl Counters {

0 commit comments

Comments
 (0)