From d7efbb516d10826d050e2425354a2bb242a3f0bd Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 11 Dec 2017 19:16:45 -0800 Subject: [PATCH] fix guide tests --- guide/src/qs_5.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/src/qs_5.md b/guide/src/qs_5.md index 6d30e7e19..46b41edaa 100644 --- a/guide/src/qs_5.md +++ b/guide/src/qs_5.md @@ -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(); }