From 91d4c18a9c498a9b3903b47c14a6ba639f1e9713 Mon Sep 17 00:00:00 2001 From: rascul Date: Fri, 15 Mar 2024 21:15:45 -0500 Subject: [PATCH] use error message instead of empty string for Error --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 192bc5c..16335be 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,7 +47,7 @@ impl Display for Rear { impl From> for Rear { fn from(error: Box) -> Self { - Self { error, message: String::new() } + Self { message: error.to_string(), error } } }