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 90c2d16 commit a67c978
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 @@ -614,17 +614,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 a67c978

Please sign in to comment.