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 7, 2024
1 parent 36d5c3b commit 390f558
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
@@ -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;
Expand Down Expand Up @@ -479,12 +479,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 390f558

Please sign in to comment.