8 lines
183 B
Rust
Raw Normal View History

2021-12-14 18:04:51 +08:00
use crate::FlowyError;
impl std::convert::From<serde_json::Error> for FlowyError {
2022-01-23 12:14:00 +08:00
fn from(error: serde_json::Error) -> Self {
2023-01-30 11:11:19 +08:00
FlowyError::serde().context(error)
2022-01-23 12:14:00 +08:00
}
2021-12-14 18:04:51 +08:00
}