-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
list: wrap up Waker UnsafeCell in a type
This makes it far easier to explain why the operations are safe. It also caused me to notice that I was double-dropping the waker -- UnsafeCell _does not_ require explicit Drop, it will drop its contents automatically. In lilos the Waker Drop impl is a no-op so I never noticed this. Removing that saves some bytes of text.
- Loading branch information
Showing
1 changed file
with
52 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters