Skip to content

Commit

Permalink
f_errors: remove ParseError
Browse files Browse the repository at this point in the history
  • Loading branch information
muzarski committed Aug 27, 2024
1 parent e777860 commit 095745e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 1 addition & 7 deletions scylla-cql/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use crate::frame::frame_errors::{
CqlErrorParseError, CqlEventParseError, CqlResponseParseError, CqlResultParseError,
FrameDeserializationError, FrameSerializationError, ParseError,
FrameDeserializationError, FrameSerializationError,
};
use crate::frame::protocol_features::ProtocolFeatures;
use crate::frame::value::SerializeValuesError;
Expand Down Expand Up @@ -625,12 +625,6 @@ impl From<SerializationError> for QueryError {
}
}

impl From<ParseError> for QueryError {
fn from(parse_error: ParseError) -> QueryError {
QueryError::InvalidMessage(format!("Error parsing message: {}", parse_error))
}
}

impl From<tokio::time::error::Elapsed> for QueryError {
fn from(timer_error: tokio::time::error::Elapsed) -> QueryError {
QueryError::RequestTimeout(format!("{}", timer_error))
Expand Down
3 changes: 0 additions & 3 deletions scylla-cql/src/frame/frame_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ pub enum FrameSerializationError {
SnapCompressError(snap::Error),
}

#[derive(Error, Debug)]
pub enum ParseError {}

#[non_exhaustive]
#[derive(Error, Debug, Clone)]
pub enum CqlRequestSerializationError {
Expand Down

0 comments on commit 095745e

Please sign in to comment.