diff --git a/examples/service_struct_impl.rs b/examples/service_struct_impl.rs index 25f33fe16d..d0be1eb708 100644 --- a/examples/service_struct_impl.rs +++ b/examples/service_struct_impl.rs @@ -65,8 +65,7 @@ impl Service> for Svc { "authors extraordinare! counter = {:?}", self.counter )), - // Return the 404 Not Found for other routes, and don't increment counter. - _ => return Box::pin(async { mk_response("oh no! not found".into()) }), + _ => mk_response("oh no! not found".into()), }; Box::pin(async { res })