From 17886da7b338d27c39e1272be8eac9b33b81ade4 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Fri, 12 Jul 2024 12:34:20 -0700 Subject: [PATCH] Remove implementation for From> Signed-off-by: David Calavera --- lambda-runtime/src/diagnostic.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lambda-runtime/src/diagnostic.rs b/lambda-runtime/src/diagnostic.rs index cd35535b..c03ce284 100644 --- a/lambda-runtime/src/diagnostic.rs +++ b/lambda-runtime/src/diagnostic.rs @@ -73,18 +73,6 @@ impl From for Diagnostic { } } -impl From> for Diagnostic -where - T: std::error::Error, -{ - fn from(value: Box) -> Self { - Diagnostic { - error_type: type_name_of_val(&value), - error_message: value.to_string(), - } - } -} - impl From> for Diagnostic { fn from(value: Box) -> Self { Diagnostic {