Skip to content

Commit

Permalink
errors: remove From<RequestError> for QueryError
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
muzarski committed Aug 26, 2024
1 parent d3ed337 commit 8cc5a51
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions scylla-cql/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,17 +615,6 @@ impl From<tokio::time::error::Elapsed> for QueryError {
}
}

impl From<RequestError> 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<UserRequestError> for QueryError {
fn from(value: UserRequestError) -> Self {
match value {
Expand Down

0 comments on commit 8cc5a51

Please sign in to comment.