tracing-trace: implement Error on Error

This commit is contained in:
Louis Dureuil 2024-01-31 17:44:28 +01:00
parent 77254765e8
commit 0f327f2821
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@ pub enum Error {
Json(serde_json::Error),
}
impl std::error::Error for Error {}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str("error de/serializing trace entry:")?;