mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-30 18:44:35 +01:00
fix guide example
This commit is contained in:
parent
f5f78d79e6
commit
f55ff24925
@ -116,7 +116,8 @@ specific error response. We can use helper types for first example with custom e
|
||||
#[macro_use] extern crate failure;
|
||||
use actix_web::*;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Fail, Debug)]
|
||||
#[fail(display="Error {}", name)]
|
||||
struct MyError {
|
||||
name: &'static str
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user