diff --git a/src/client.rs b/src/client.rs index c4c5936..f0da472 100644 --- a/src/client.rs +++ b/src/client.rs @@ -406,7 +406,7 @@ impl Client { return match e.raw_os_error() { None => Ok(Vec::new().into()), - Some(code) if code == 0 => Ok(Vec::new().into()), + Some(0) => Ok(Vec::new().into()), Some(_) => Err(e), }; }