From 5e1743fd3fc9c23b39aeb9e741f88679e9e54c94 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Fri, 26 Feb 2021 00:18:15 -0800 Subject: [PATCH] refactor(core): do not convert encode or decode errors into sqlx::Error automatically --- sqlx-core/src/error.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sqlx-core/src/error.rs b/sqlx-core/src/error.rs index b731f4c9..1fa377d1 100644 --- a/sqlx-core/src/error.rs +++ b/sqlx-core/src/error.rs @@ -190,15 +190,3 @@ impl From for Error { Self::Network(error.into()) } } - -impl From for Error { - fn from(error: DecodeError) -> Self { - Self::Decode(error) - } -} - -impl From for Error { - fn from(error: EncodeError) -> Self { - Self::Encode(error) - } -}