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 `;`
remotes/DearRude/go/async
Mina Galić 4 years ago
parent cf3708e1c6
commit 492bbb1ba6
Signed by: igalic
GPG Key ID: ACFEFF7F6A123A86

@ -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> {
match DbConn::from_request(request).await {
Outcome::Success(a) => return Outcome::Success(a),
_ => return Outcome::Failure((Status::ServiceUnavailable, ())),
};
Outcome::Success(a) => Outcome::Success(a),
_ => Outcome::Failure((Status::ServiceUnavailable, ())),
}
}
}

Loading…
Cancel
Save