Replace 0 as *const/mut T with ptr::null/null_mut()
This commit is contained in:
parent
378fb5846d
commit
2c2480df5d
19 changed files with 65 additions and 55 deletions
|
|
@ -425,7 +425,7 @@ mod imp {
|
|||
dtor(ptr);
|
||||
}
|
||||
ptr = DTORS.get();
|
||||
DTORS.set(0 as *mut _);
|
||||
DTORS.set(ptr::null_mut());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -522,7 +522,7 @@ mod imp {
|
|||
let key = ptr.key;
|
||||
key.os.set(1 as *mut u8);
|
||||
drop(ptr);
|
||||
key.os.set(0 as *mut u8);
|
||||
key.os.set(ptr::null_mut());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue