From 6206938c7f043ce6a724ca8223f1a658d9a0fa75 Mon Sep 17 00:00:00 2001 From: Josh Holmer Date: Mon, 9 Jan 2017 22:09:14 -0500 Subject: [PATCH] Fix downstream clippy warnings --- codegen/src/decorators/route.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codegen/src/decorators/route.rs b/codegen/src/decorators/route.rs index 64194299..193d4ec9 100644 --- a/codegen/src/decorators/route.rs +++ b/codegen/src/decorators/route.rs @@ -93,7 +93,7 @@ impl RouteGenerateExt for RouteParams { let ty = strip_ty_lifetimes(arg.ty.clone()); Some(quote_stmt!(ecx, let $name: $ty = - match ::rocket::data::FromData::from_data(&_req, _data) { + match ::rocket::data::FromData::from_data(_req, _data) { ::rocket::Outcome::Success(d) => d, ::rocket::Outcome::Forward(d) => return ::rocket::Outcome::Forward(d), @@ -181,7 +181,7 @@ impl RouteGenerateExt for RouteParams { let ty = strip_ty_lifetimes(arg.ty.clone()); fn_param_statements.push(quote_stmt!(ecx, let $ident: $ty = match - ::rocket::request::FromRequest::from_request(&_req) { + ::rocket::request::FromRequest::from_request(_req) { ::rocket::outcome::Outcome::Success(v) => v, ::rocket::outcome::Outcome::Forward(_) => return ::rocket::Outcome::forward(_data),