zman 3.1.3

a CLI year progress
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("{0}")]
    InvalidArgument(String),

    #[error("No such time")]
    InvalidTime,
}

impl std::convert::From<jiff::Error> for Error {
    fn from(err: jiff::Error) -> Self {
        Error::InvalidArgument(err.to_string())
    }
}