mirror of
https://github.com/actix/actix-web.git
synced 2025-06-05 06:38:47 +00:00
fix guide example
This commit is contained in:
parent
f5f78d79e6
commit
f55ff24925
1 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,8 @@ specific error response. We can use helper types for first example with custom e
|
||||||
#[macro_use] extern crate failure;
|
#[macro_use] extern crate failure;
|
||||||
use actix_web::*;
|
use actix_web::*;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Fail, Debug)]
|
||||||
|
#[fail(display="Error {}", name)]
|
||||||
struct MyError {
|
struct MyError {
|
||||||
name: &'static str
|
name: &'static str
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue