Skip to content

Commit 3887f93

Browse files
committed
Cleanup safety comment
1 parent 802994b commit 3887f93

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ fn do_main() -> Result<()> {
227227
// We do this by creating a pipe. The pipe can be closed by either the child process exiting,
228228
// or the child process closing it.
229229
let (parent, child) = rustix::pipe::pipe_with(PipeFlags::CLOEXEC)?;
230-
// SAFETY: forking is safe because we are single-threaded now.
231-
match safe_fork::fork()? {
230+
match safe_fork::fork().expect("should still be single-threaded") {
232231
None => {
233232
drop(parent);
234233
tokio::runtime::Runtime::new()?.block_on(create(args.global, create_options, child))?;

0 commit comments

Comments
 (0)