From 536e106e7ed01918a6947dc1025554293c97655d Mon Sep 17 00:00:00 2001 From: Andrey Tkachenko Date: Wed, 19 Jun 2019 20:45:13 +0400 Subject: [PATCH] Update middleware.rs Workaround for issue #278 --- tide-cookies/src/middleware.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tide-cookies/src/middleware.rs b/tide-cookies/src/middleware.rs index 41c3e10db..5778d7cd8 100644 --- a/tide-cookies/src/middleware.rs +++ b/tide-cookies/src/middleware.rs @@ -44,7 +44,7 @@ impl Middleware for CookiesMiddleware { let cookie_jar = cookie_data.content.clone(); - cx.extensions_mut().insert(cookie_data); + let _ = cx.extensions_mut().insert(cookie_data); let mut res = next.run(cx).await; let headers = res.headers_mut(); for cookie in cookie_jar.read().unwrap().delta() {