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, ())), + } } }