From be5c8c6e624360c00fbf3161a98a67b6fab6b676 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 30 Nov 2020 16:35:31 +0100 Subject: [PATCH] Fix deprecation --- server/src/util.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/util.rs b/server/src/util.rs index 8c9ee32..465d5eb 100644 --- a/server/src/util.rs +++ b/server/src/util.rs @@ -104,7 +104,7 @@ pub struct Validated(T); impl FromRequest> for Validated { type Config = (); - type Result = Box>; + type Result = Box>; fn from_request(req: &HttpRequest>, _: &Self::Config) -> Self::Result { let state = req.state().clone(); @@ -134,7 +134,8 @@ impl Deref for Validated { } fn extract_signature(req: &HttpRequest) -> Result> { - Ok(req.headers() + Ok(req + .headers() .get(::data::TOKEN_HEADER) .as_ref() .ok_or_else(|| ErrorUnauthorized(ParseError::Header))?