From 095745e858c62b10af61e806fc1366884af1bfe8 Mon Sep 17 00:00:00 2001 From: muzarski Date: Wed, 7 Aug 2024 11:26:27 +0200 Subject: [PATCH] f_errors: remove ParseError --- scylla-cql/src/errors.rs | 8 +------- scylla-cql/src/frame/frame_errors.rs | 3 --- 2 files changed, 1 insertion(+), 10 deletions(-) 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 {