1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
use crate::prelude::*;
use std::fmt::{Display, Formatter, Debug};

#[derive(Debug, PartialEq)]
pub enum Error {
    Missing {
        branch: String,
        id: PrimitiveId,
    }
}

impl Display for Error {
    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), std::fmt::Error> {
        // TODO: Don't use the debug implementation
        Debug::fmt(self, f)
    }
}

impl std::error::Error for Error {

}