mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
since it does not support hard-whitespaces its the only way to make whitespaces consisitent and checked
15 lines
366 B
Rust
15 lines
366 B
Rust
#![allow(renamed_and_removed_lints, clippy::unknown_clippy_lints)]
|
|
|
|
use std::{num::TryFromIntError, path::PathBuf};
|
|
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum Error {
|
|
#[error("InvalidPath: `{0}`")]
|
|
InvalidPath(PathBuf),
|
|
|
|
#[error("TryFromInt error:{0}")]
|
|
IntConversion(#[from] TryFromIntError),
|
|
}
|
|
|
|
pub type Result<T> = std::result::Result<T, Error>;
|