diff --git a/scylla-cql/src/errors.rs b/scylla-cql/src/errors.rs index 4869568bd9..2cef5417e8 100644 --- a/scylla-cql/src/errors.rs +++ b/scylla-cql/src/errors.rs @@ -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; @@ -625,12 +625,6 @@ impl From for QueryError { } } -impl From for QueryError { - fn from(parse_error: ParseError) -> QueryError { - QueryError::InvalidMessage(format!("Error parsing message: {}", parse_error)) - } -} - impl From for QueryError { fn from(timer_error: tokio::time::error::Elapsed) -> QueryError { QueryError::RequestTimeout(format!("{}", timer_error)) diff --git a/scylla-cql/src/frame/frame_errors.rs b/scylla-cql/src/frame/frame_errors.rs index 9dc305a056..1aea061538 100644 --- a/scylla-cql/src/frame/frame_errors.rs +++ b/scylla-cql/src/frame/frame_errors.rs @@ -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 {