1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

relax InternalError constraints

This commit is contained in:
Nikolay Kim
2018-01-20 22:02:42 -08:00
parent f55ff24925
commit 7bb7adf89c
2 changed files with 7 additions and 8 deletions

View File

@ -116,8 +116,7 @@ specific error response. We can use helper types for first example with custom e
#[macro_use] extern crate failure;
use actix_web::*;
#[derive(Fail, Debug)]
#[fail(display="Error {}", name)]
#[derive(Debug)]
struct MyError {
name: &'static str
}