use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("the links are not sorted correctly")]
LinksWrongOrder,
#[error("cannot convert from IPLD: {0}")]
FromIpld(String),
#[error("cannot encode protocol buffers")]
ToPb(#[from] quick_protobuf::Error),
#[error("IO error")]
Io(#[from] std::io::Error),
}