From 59043e262a6b0f63b984bc224e152100234e3ec9 Mon Sep 17 00:00:00 2001 From: Josh Holmer Date: Mon, 9 Jan 2017 22:09:14 -0500 Subject: [PATCH] Fix more codegen 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),