Skip to content

Commit 17886da

Browse files
committed
Remove implementation for From<Box<T>>
Signed-off-by: David Calavera <[email protected]>
1 parent fa3347f commit 17886da

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lambda-runtime/src/diagnostic.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,6 @@ impl From<Error> for Diagnostic {
7373
}
7474
}
7575

76-
impl<T> From<Box<T>> for Diagnostic
77-
where
78-
T: std::error::Error,
79-
{
80-
fn from(value: Box<T>) -> Self {
81-
Diagnostic {
82-
error_type: type_name_of_val(&value),
83-
error_message: value.to_string(),
84-
}
85-
}
86-
}
87-
8876
impl From<Box<dyn std::error::Error>> for Diagnostic {
8977
fn from(value: Box<dyn std::error::Error>) -> Self {
9078
Diagnostic {

0 commit comments

Comments
 (0)