From 8cc5a51411bb722c703aa33043263ba6e3a91c8a Mon Sep 17 00:00:00 2001 From: muzarski Date: Mon, 26 Aug 2024 16:30:08 +0200 Subject: [PATCH] errors: remove From for QueryError Since we introduced a transition error type for user requests (UserRequestError), and adjusted the code to it, we can now return the temporary From implementation. --- scylla-cql/src/errors.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/scylla-cql/src/errors.rs b/scylla-cql/src/errors.rs index 78fb4ac147..2041eb3f95 100644 --- a/scylla-cql/src/errors.rs +++ b/scylla-cql/src/errors.rs @@ -615,17 +615,6 @@ impl From for QueryError { } } -impl From for QueryError { - fn from(value: RequestError) -> Self { - match value { - RequestError::FrameError(e) => e.into(), - RequestError::CqlResponseParseError(e) => e.into(), - RequestError::BrokenConnection(e) => e.into(), - RequestError::UnableToAllocStreamId => QueryError::UnableToAllocStreamId, - } - } -} - impl From for QueryError { fn from(value: UserRequestError) -> Self { match value {