From 02efa636e9a1d06d7385c8a03c802c18b97e9d37 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 fda51f3bb0..5812ef84a9 100644 --- a/scylla-cql/src/errors.rs +++ b/scylla-cql/src/errors.rs @@ -1,7 +1,7 @@ //! This module contains various errors which can be returned by `scylla::Session` use crate::frame::frame_errors::{ - CqlResponseParseError, FrameDeserializationError, FrameSerializationError, ParseError, + CqlResponseParseError, FrameDeserializationError, FrameSerializationError, }; use crate::frame::protocol_features::ProtocolFeatures; use crate::frame::value::SerializeValuesError; @@ -479,12 +479,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 {