Skip to content

Commit 03d798f

Browse files
Without Boatscramertj
Without Boats
authored andcommitted
Satisfy the clippy overlords
1 parent f6496cb commit 03d798f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

futures-core/src/task/__internal/atomic_waker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ impl AtomicWaker {
340340
// Release the lock
341341
self.state.fetch_and(!(WAKING | HOLDS), Release);
342342

343-
return waker;
343+
waker
344344
}
345345
state => {
346346
// There is a concurrent thread currently updating the
@@ -356,7 +356,7 @@ impl AtomicWaker {
356356
state == WAKING ||
357357
state == WAKING | HOLDS);
358358

359-
return None;
359+
None
360360
}
361361
}
362362
}

0 commit comments

Comments
 (0)