blob: c7b6448e2ed122ff3eb65e93e690b699015a6919 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
pub type Result<T> = std::result::Result<T, Error>;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error(transparent)]
Ignore(#[from] ignore::Error),
#[error(transparent)]
IO(#[from] std::io::Error),
#[cfg(feature = "git")]
#[error(transparent)]
Git(#[from] git2::Error),
#[error(transparent)]
SystemTime(#[from] std::time::SystemTimeError),
#[error(transparent)]
Other(#[from] anyhow::Error),
}
|