Skip to content

Commit

Permalink
Remove implementation for From<Box<T>>
Browse files Browse the repository at this point in the history
Signed-off-by: David Calavera <[email protected]>
  • Loading branch information
calavera committed Jul 12, 2024
1 parent fa3347f commit 17886da
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lambda-runtime/src/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,6 @@ impl From<Error> for Diagnostic {
}
}

impl<T> From<Box<T>> for Diagnostic
where
T: std::error::Error,
{
fn from(value: Box<T>) -> Self {
Diagnostic {
error_type: type_name_of_val(&value),
error_message: value.to_string(),
}
}
}

impl From<Box<dyn std::error::Error>> for Diagnostic {
fn from(value: Box<dyn std::error::Error>) -> Self {
Diagnostic {
Expand Down

0 comments on commit 17886da

Please sign in to comment.