Add custom result type

This commit is contained in:
Valentin Brandl 2019-05-04 15:33:21 +02:00
parent 2d4e1930a8
commit 4556d6a04a
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -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),