Skip to content

Commit a900301

Browse files
committed
[temp] fix
1 parent 85fc976 commit a900301

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/unix.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ impl Client {
8282
}
8383

8484
pub unsafe fn open(s: &str) -> io::Result<Client> {
85-
Ok(Self::from_fifo(s)?.unwrap_or(Self::from_pipe(s)?))
85+
if let Some(client) = Self::from_fifo(s)? {
86+
return Ok(client);
87+
}
88+
Self::from_pipe(s)
8689
}
8790

8891
/// `--jobserver-auth=fifo:PATH`

0 commit comments

Comments
 (0)