1 2 3 4 5 6 7 8 9 10 11
use std::io; use thiserror::Error; #[derive(Error, Debug)] pub enum Error { #[error("{}", _0)] Text(String), #[error("failed to write alfred items->json {}", _0)] WriteItems(#[from] io::Error), }