mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-28 14:46:27 +00:00
Use pointer::cast
instead of as
pointer casts
This commit is contained in:
parent
19601267cf
commit
1f409793ae
@ -167,7 +167,7 @@ mod lister {
|
||||
unsafe {
|
||||
listxattr(
|
||||
c_path.as_ptr(),
|
||||
buf.as_mut_ptr() as *mut c_char,
|
||||
buf.as_mut_ptr().cast::<c_char>(),
|
||||
bufsize as size_t,
|
||||
self.c_flags,
|
||||
)
|
||||
@ -178,7 +178,7 @@ mod lister {
|
||||
unsafe {
|
||||
getxattr(
|
||||
c_path.as_ptr(),
|
||||
buf.as_ptr() as *const c_char,
|
||||
buf.as_ptr().cast::<c_char>(),
|
||||
ptr::null_mut(),
|
||||
0,
|
||||
0,
|
||||
|
Loading…
Reference in New Issue
Block a user