From 2df9f36599b16efdcba57f73510e49aae4e8b91f Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 1 Dec 2024 03:59:36 +0200 Subject: [PATCH] fix cancellation construction --- src/client/connection.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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), } }