Skip to content

Commit

Permalink
error: remove From<std::io::Error> for QueryError
Browse files Browse the repository at this point in the history
This conversion is no longer used, as IO errors
are already handled by transition error types.
  • Loading branch information
muzarski committed Sep 17, 2024
1 parent 0bfa620 commit 52c689d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scylla-cql/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -652,12 +652,6 @@ impl std::fmt::Display for WriteType {
}
}

impl From<std::io::Error> for QueryError {
fn from(io_error: std::io::Error) -> QueryError {
QueryError::IoError(Arc::new(io_error))
}
}

impl From<SerializeValuesError> for QueryError {
fn from(serialized_err: SerializeValuesError) -> QueryError {
QueryError::BadQuery(BadQuery::SerializeValuesError(serialized_err))
Expand Down

0 comments on commit 52c689d

Please sign in to comment.