-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NonNull<u8> in MmapRegionBuilder for saving space
Updates the `raw_ptr` field in `MmapRegionBuilder` (mmap_unix.rs) from `Option<*mut u8>` to `Option<NonNull<u8>>`. This modification saves 8 bytes on x86-64 systems, for example. The public API and functionality remain unchanged. Signed-off-by: Fuu <[email protected]>
- Loading branch information
1 parent
b55a713
commit bcb614c
Showing
1 changed file
with
4 additions
and
4 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