From 492bbb1ba6c718c5191276f444a0232842a21f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mina=20Gali=C4=87?= Date: Mon, 25 May 2020 15:23:55 +0200 Subject: [PATCH] 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 `;` --- plume-models/src/db_conn.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plume-models/src/db_conn.rs b/plume-models/src/db_conn.rs index 2eceda88..1a7c7673 100644 --- a/plume-models/src/db_conn.rs +++ b/plume-models/src/db_conn.rs @@ -27,9 +27,9 @@ impl<'a, 'r> FromRequest<'a, 'r> for DbConn { async fn from_request(request: &'a Request<'r>) -> request::Outcome { 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, ())), + } } }