1use crate::AppError; 2 3pub type AppResult<T> = Result<T, AppError>; 4 5pub trait ResultExt<T> { 6 fn errkit(self) -> AppResult<T>; 7} 8 9impl<T> ResultExt<T> for Result<T, AppError> { 10 fn errkit(self) -> AppResult<T> { 11 self 12 } 13}