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 Aug 29, 2024
1 parent 2e5baa6 commit c63e415
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 @@ -616,12 +616,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 c63e415

Please sign in to comment.