diff --git a/src/error.rs b/src/error.rs index 02278030..b7af6816 100644 --- a/src/error.rs +++ b/src/error.rs @@ -15,7 +15,7 @@ pub type Result = std::result::Result; pub struct Error { error: anyhow::Error, status: crate::StatusCode, - type_name: Option, + type_name: Option<&'static str>, } impl Error { @@ -28,7 +28,7 @@ impl Error { Self { status, error: error.into(), - type_name: Some(std::any::type_name::().to_string()), + type_name: Some(std::any::type_name::()), } }