Skip to content

Commit f793d5f

Browse files
Remove unneeded local
1 parent 7128f15 commit f793d5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_unistd.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ fn test_fork_and_waitpid() {
1919
let m = ::FORK_MTX.lock().expect("Mutex got poisoned by another test");
2020

2121
// Safe: Child only calls `_exit`, which is signal-safe
22-
let pid = fork();
23-
match pid {
22+
match fork() {
2423
Ok(Child) => unsafe { _exit(0) },
2524
Ok(Parent { child }) => {
2625
// assert that child was created and pid > 0

0 commit comments

Comments
 (0)