We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aa84f3 commit 7821e22Copy full SHA for 7821e22
src/error.rs
@@ -15,7 +15,7 @@ pub type Result<T> = std::result::Result<T, Error>;
15
pub struct Error {
16
error: anyhow::Error,
17
status: crate::StatusCode,
18
- type_name: Option<String>,
+ type_name: Option<&'static str>,
19
}
20
21
impl Error {
@@ -28,7 +28,7 @@ impl Error {
28
Self {
29
status,
30
error: error.into(),
31
- type_name: Some(std::any::type_name::<E>().to_string()),
+ type_name: Some(std::any::type_name::<E>()),
32
33
34
0 commit comments