tasks_rs/
error.rs

1use std::fmt::Display;
2
3pub enum Error {
4    TaskNotFound,
5}
6
7impl Display for Error {
8    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
9        match self {
10            Error::TaskNotFound => write!(f, "Task Not Found"),
11        }
12    }
13}