mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
tracing-trace: implement Error on Error
This commit is contained in:
parent
77254765e8
commit
0f327f2821
@ -3,6 +3,8 @@ pub enum Error {
|
|||||||
Json(serde_json::Error),
|
Json(serde_json::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::error::Error for Error {}
|
||||||
|
|
||||||
impl std::fmt::Display for Error {
|
impl std::fmt::Display for Error {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
f.write_str("error de/serializing trace entry:")?;
|
f.write_str("error de/serializing trace entry:")?;
|
||||||
|
Loading…
Reference in New Issue
Block a user