diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | src/authorization/server.rs | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -28,7 +28,7 @@ fmt: @cargo fmt lint: - @cargo clippy -- -D warnings + @cargo clippy doc: @cargo doc --open diff --git a/src/authorization/server.rs b/src/authorization/server.rs index 54227968..ded609da 100644 --- a/src/authorization/server.rs +++ b/src/authorization/server.rs @@ -10,7 +10,9 @@ pub struct Server { impl Server { pub fn new() -> Result<Server, Box<dyn std::error::Error>> { let (health_reporter, health_service) = tonic_health::server::health_reporter(); - let _ = health_reporter.set_service_status("", tonic_health::ServingStatus::Serving); + std::mem::drop( + health_reporter.set_service_status("", tonic_health::ServingStatus::Serving), + ); let authorization_service = AuthorizationServer::new(CheckService::new(Arc::new(CedarAuthorizer::default()))); |
