blob: 81dd4fa04d597aa3877e8eeaec2b13b6f5f7b7a0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("Failed to parse key input: {0:?}")]
IO(#[from] std::io::Error),
#[error("Failed to write to screen: {0:?}")]
Fmt(#[from] std::fmt::Error),
}
|