diff --git a/src/unix.rs b/src/unix.rs index b61a85c5..7a576a3b 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -90,9 +90,8 @@ impl Client { pub unsafe fn open(s: &str) -> Result { 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!(), } }