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))?