1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-21 07:36:43 +00:00

fix guide tests

This commit is contained in:
Nikolay Kim 2017-12-11 19:16:45 -08:00
parent 6e3f598c50
commit d7efbb516d

View file

@ -543,9 +543,9 @@ use actix_web::httpcodes::*;
fn main() {
Application::new()
.default_resource(|r|
.default_resource(|r| {
r.method(Method::GET).f(|req| HTTPNotFound);
r.route().p(pred::Not(pred::Get()).f(|req| HTTPMethodNotAllowed);
r.route().p(pred::Not(pred::Get())).f(|req| HTTPMethodNotAllowed);
})
.finish();
}