From da2b20956b25ed5319fd40514737a32a2fc867f0 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 4159485d65..e9499dfb7d 100644 --- a/scylla-cql/src/errors.rs +++ b/scylla-cql/src/errors.rs @@ -614,17 +614,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 {