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

#[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 {}