diff options
| author | klensy <klensy@users.noreply.github.com> | 2023-05-16 19:37:26 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2023-05-31 19:41:51 +0300 |
| commit | f212ba6d6d60963c8101bb24fc3e53fca80c046f (patch) | |
| tree | 2d8f46574dad267ef2c0817c46e871923e261236 /library/std/src/sys/unix/fs.rs | |
| parent | a17561ffc90c900cb7d0e96b00c6381244764ef7 (diff) | |
| download | rust-f212ba6d6d60963c8101bb24fc3e53fca80c046f.tar.gz rust-f212ba6d6d60963c8101bb24fc3e53fca80c046f.zip | |
use c literals in library
Diffstat (limited to 'library/std/src/sys/unix/fs.rs')
| -rw-r--r-- | library/std/src/sys/unix/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs index 09e9ae2720f..0e5691d40d1 100644 --- a/library/std/src/sys/unix/fs.rs +++ b/library/std/src/sys/unix/fs.rs @@ -1063,7 +1063,7 @@ impl File { cfg_has_statx! { if let Some(ret) = unsafe { try_statx( fd, - b"\0" as *const _ as *const c_char, + c"".as_ptr() as *const c_char, libc::AT_EMPTY_PATH | libc::AT_STATX_SYNC_AS_STAT, libc::STATX_ALL, ) } { |
