From 08d7bd0cee7b8a968ef68d4bc97e59ec4c02a51b Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 13 Jun 2024 17:07:44 +0200 Subject: [PATCH] sdk: get rid of the `UnableToCloneRequest` error which is absolutely unused --- crates/matrix-sdk/CHANGELOG.md | 2 ++ crates/matrix-sdk/src/error.rs | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk/CHANGELOG.md b/crates/matrix-sdk/CHANGELOG.md index 794d0ee44..cd560a509 100644 --- a/crates/matrix-sdk/CHANGELOG.md +++ b/crates/matrix-sdk/CHANGELOG.md @@ -15,6 +15,8 @@ Breaking changes: - It is now possible to select the format of a generated thumbnail. - `generate_image_thumbnail` takes a `ThumbnailFormat`. - `AttachmentConfig::generate_thumbnail` takes a `ThumbnailFormat`. +- The `HttpError::UnableToCloneRequest` error variant has been removed because it was never used or + generated by the SDK. Additions: diff --git a/crates/matrix-sdk/src/error.rs b/crates/matrix-sdk/src/error.rs index 621b23bdc..c2c7fa63c 100644 --- a/crates/matrix-sdk/src/error.rs +++ b/crates/matrix-sdk/src/error.rs @@ -105,10 +105,6 @@ pub enum HttpError { #[error(transparent)] IntoHttp(#[from] IntoHttpError), - /// The given request can't be cloned and thus can't be retried. - #[error("The request cannot be cloned")] - UnableToCloneRequest, - /// An error occurred while refreshing the access token. #[error(transparent)] RefreshToken(#[from] RefreshTokenError),