Add custom result type
This commit is contained in:
parent
2d4e1930a8
commit
4556d6a04a
@ -2,6 +2,8 @@ use crate::P500;
|
||||
use actix_web::{HttpResponse, ResponseError};
|
||||
use std::fmt;
|
||||
|
||||
pub(crate) type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) enum Error {
|
||||
Badge(String),
|
||||
|
Loading…
Reference in New Issue
Block a user