Skip to content

Commit

Permalink
[temp] fix
Browse files Browse the repository at this point in the history
  • Loading branch information
belovdv committed Mar 12, 2023
1 parent 23e8b7e commit 0accda8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ impl Client {

pub unsafe fn open(s: &str) -> Result<Client, ErrFromEnv> {
match (Self::from_fifo(s), Self::from_pipe(s)) {
(Some(result), None) | (None, Some(result)) => result,
(Some(result), _) | (None, Some(result)) => result,
(None, None) => Err(ErrFromEnv::ParseEnvVar),
(Some(_), Some(_)) => unreachable!(),
}
}

Expand Down

0 comments on commit 0accda8

Please sign in to comment.