-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up some use of unsafe in MemoryMapRefMut
The qsort, partition, and swap methods do not need to be `unsafe`; they do some unsafe operations internally, but have safe interfaces. Add some asserts to ensure that arguments passed to swap and get_element_phys_addr are valid, and also add some safety comments.
- Loading branch information
1 parent
b0f6077
commit 51fa49a
Showing
1 changed file
with
15 additions
and
11 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