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 2df3153 commit 67674bbCopy full SHA for 67674bb
src/error.rs
@@ -16,7 +16,7 @@ pub type Result<T> = std::result::Result<T, Error>;
16
pub struct Error {
17
error: anyhow::Error,
18
status: crate::StatusCode,
19
- type_name: Option<String>,
+ type_name: Option<&'static str>,
20
}
21
22
impl Error {
@@ -36,7 +36,7 @@ impl Error {
36
.try_into()
37
.expect("Could not convert into a valid `StatusCode`"),
38
error: error.into(),
39
- type_name: Some(std::any::type_name::<E>().to_string()),
+ type_name: Some(std::any::type_name::<E>()),
40
41
42
0 commit comments