diff --git a/src/client/connection.rs b/src/client/connection.rs index 12612ab..ee2d4e1 100644 --- a/src/client/connection.rs +++ b/src/client/connection.rs @@ -64,7 +64,10 @@ impl Connection { /// * return `Error` on `Cancellable` not found pub fn cancel(&self) -> Result<(), Error> { match self.cancellable { - Some(ref cancellable) => Ok(cancellable.cancel()), + Some(ref cancellable) => { + cancellable.cancel(); + Ok(()) + } None => Err(Error::Cancel), } }