From 8bf305f04cf5554392b14ce6cb280452b8deb93a Mon Sep 17 00:00:00 2001 From: Dan Munckton Date: Mon, 27 Aug 2018 21:01:30 +0100 Subject: [PATCH] Fix json example Travis build failure --- json/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/json/src/main.rs b/json/src/main.rs index 64ea573e..a93f761e 100644 --- a/json/src/main.rs +++ b/json/src/main.rs @@ -110,14 +110,14 @@ fn main() { .middleware(middleware::Logger::default()) .resource("/extractor", |r| { r.method(http::Method::POST) - .with_config(extract_item, |cfg| { + .with_config(extract_item, |(cfg,)| { cfg.limit(4096); // <- limit size of the payload }) }) .resource("/extractor2", |r| { r.method(http::Method::POST) - .with_config(extract_item_limit, |cfg| { - cfg.0.limit(4096); // <- limit size of the payload + .with_config(extract_item_limit, |((cfg, _),)| { + cfg.limit(4096); // <- limit size of the payload }) }) .resource("/manual", |r| r.method(http::Method::POST).f(index_manual))