mv the raw pointer {swap,replace}_ptr to std::ptr
This commit is contained in:
parent
030f471f26
commit
29aba8033a
6 changed files with 48 additions and 48 deletions
|
|
@ -26,8 +26,8 @@ pub fn main() {
|
|||
|
||||
fn do_swap(test: &mut TestDescAndFn) {
|
||||
unsafe {
|
||||
util::swap_ptr(ptr::to_mut_unsafe_ptr(test),
|
||||
ptr::to_mut_unsafe_ptr(test));
|
||||
ptr::swap_ptr(ptr::to_mut_unsafe_ptr(test),
|
||||
ptr::to_mut_unsafe_ptr(test));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue