You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
310 B
15 lines
310 B
#[derive(Debug)]
|
|
pub enum RepoError {
|
|
Creation,
|
|
Empty,
|
|
Serialization
|
|
}
|
|
|
|
impl From<std::io::Error> for RepoError {
|
|
fn from(_: std::io::Error) -> Self { RepoError::Creation }
|
|
}
|
|
|
|
impl From<serde_json::Error> for RepoError {
|
|
fn from(_: serde_json::Error) -> Self { RepoError::Serialization }
|
|
}
|