-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
counter::{Sender, Receiver} hold shared references to a channel, similar to an Arc. Their raw pointers to the Counter are never null, so change them from *mut Counter<C> to NonNull<Counter<C>>. This makes it easier to verify the safety requirements for dereferences, and allows the niche value optimization to apply.
- Loading branch information
1 parent
3ce467f
commit e316b3e
Showing
1 changed file
with
9 additions
and
8 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