mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 21:41:04 +00:00
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:
parent
cf3708e1c6
commit
492bbb1ba6
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue