mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 00:46:30 +03:00
Replace explicit casts from 0 to pointer with std::ptr::null
This commit is contained in:
@@ -1424,7 +1424,7 @@ mod tests {
|
||||
);
|
||||
assert_ne!(str_a, str_a_copy);
|
||||
|
||||
let str_a = 0 as *const u8 as *const libc::c_char;
|
||||
let str_a = ptr::null();
|
||||
let str_a_copy = dc_strdup_keep_null(str_a);
|
||||
assert_eq!(str_a.is_null(), true);
|
||||
assert_eq!(str_a_copy.is_null(), true);
|
||||
|
||||
Reference in New Issue
Block a user