Compare commits

..

No commits in common. '77bd9e968efec4792602ac539c99ea642db69825' and '4dc026bb587c015519150bd9644f2dd2cdf4ede1' have entirely different histories.

@ -31,7 +31,10 @@ impl Rear {
let error = error.into();
let message = message.into();
Self { error, message }
Self {
error,
message,
}
}
}
@ -47,19 +50,20 @@ impl Display for Rear {
impl From<Box<dyn Error>> for Rear {
fn from(error: Box<dyn Error>) -> Self {
Self { error, message: String::new() }
}
Self {
error: error,
message: String::new(),
}
impl From<std::io::Error> for Rear {
fn from(error: std::io::Error) -> Self {
Self { message: error.to_string(), error: error.into() }
}
}
#[cfg(feature = "serde_json")]
impl From<serde_json::Error> for Rear {
fn from(error: serde_json::Error) -> Self {
Self { message: error.to_string(), error: error.into() }
let message: String = error.to_string();
Self {
error: error.into(),
message: message,
}
}
}

Loading…
Cancel
Save