Skip to content

Commit d7eca28

Browse files
David Tolnaymeta-codesync[bot]
authored andcommitted
Fix clippy::manual_c_str_literals issues in fbcode/hermetic_infra/reverie/reverie-process/src
Reviewed By: diliop Differential Revision: D95178156 fbshipit-source-id: f0305679128949007b1b1ed6212fe7ea120e2ad1
1 parent a699dcc commit d7eca28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

reverie-process/src/fd.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ impl Fd {
6868
}
6969

7070
pub fn null(readable: bool) -> Result<Self, Errno> {
71-
let path = unsafe { CStr::from_bytes_with_nul_unchecked(b"/dev/null\0") };
7271
Self::open_c(
73-
path.as_ptr(),
72+
c"/dev/null".as_ptr(),
7473
if readable {
7574
libc::O_RDONLY
7675
} else {

0 commit comments

Comments
 (0)