From a8ec441c5b9e8ea0966abbb2da52378f718048cc Mon Sep 17 00:00:00 2001 From: muzarski Date: Thu, 29 Aug 2024 16:03:51 +0200 Subject: [PATCH] error: remove From for QueryError This conversion is no longer used, as IO errors are already handled by transition error types. --- scylla-cql/src/errors.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scylla-cql/src/errors.rs b/scylla-cql/src/errors.rs index d77bcb4c7a..80f08a96ba 100644 --- a/scylla-cql/src/errors.rs +++ b/scylla-cql/src/errors.rs @@ -621,12 +621,6 @@ impl std::fmt::Display for WriteType { } } -impl From for QueryError { - fn from(io_error: std::io::Error) -> QueryError { - QueryError::IoError(Arc::new(io_error)) - } -} - impl From for QueryError { fn from(serialized_err: SerializeValuesError) -> QueryError { QueryError::BadQuery(BadQuery::SerializeValuesError(serialized_err))