tiny_v2 0.3.0

Parser for Fabric's Tiny v2 files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{error::Error, fmt::Display};

#[derive(Debug)]
pub struct TinyV2Error(pub String);

impl TinyV2Error {
    pub(crate) fn new<T: Into<String>>(msg: T) -> Self {
        Self(msg.into())
    }
}

impl Display for TinyV2Error {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{:?}", self)
    }
}

impl Error for TinyV2Error {}