make clippy happy with a weird quirk wrt return

not happy about this lint or rust behaviour where the return statement
must not have a `;`
This commit is contained in:
Mina Galić 2020-05-25 15:23:55 +02:00
parent cf3708e1c6
commit 492bbb1ba6
No known key found for this signature in database
GPG Key ID: ACFEFF7F6A123A86

View File

@ -27,9 +27,9 @@ impl<'a, 'r> FromRequest<'a, 'r> for DbConn {
async fn from_request(request: &'a Request<'r>) -> request::Outcome<Self, Self::Error> { async fn from_request(request: &'a Request<'r>) -> request::Outcome<Self, Self::Error> {
match DbConn::from_request(request).await { match DbConn::from_request(request).await {
Outcome::Success(a) => return Outcome::Success(a), Outcome::Success(a) => Outcome::Success(a),
_ => return Outcome::Failure((Status::ServiceUnavailable, ())), _ => Outcome::Failure((Status::ServiceUnavailable, ())),
}; }
} }
} }