Fix more codegen clippy warnings.

This commit is contained in:
Josh Holmer 2017-01-09 22:09:14 -05:00 committed by Sergio Benitez
parent 17bbd41f73
commit 59043e262a
1 changed files with 2 additions and 2 deletions

View File

@ -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),