From 3918cd36d232388b0a1d560c267f38485e96f6e5 Mon Sep 17 00:00:00 2001 From: dutchie032 Date: Tue, 10 Sep 2024 23:15:30 +0200 Subject: [PATCH] rust lint fixes --- CHANGELOG.md | 2 +- src/rpc/administration.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32a6ac4..07ac648 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `GetClients` to `SrsService`, which retrieves a list of units that are connected to SRS and the frequencies they are connected to. - Added `SrsConnectEvent` and `SrsDisconnectEvent` events - Added `GetDrawArgumentValue` API for units, which returns the value for drawing. (useful for "hook down", "doors open" checks) -- Added `AdministrationService` with `GetHealth` and `GetVersion` for quick checks on health (even when DCS server is unresponsive) and version. +- Added `AdministrationService` with `GetHealth` and `GetVersion` for quick checks on health (even when DCS mission is unresponsive) and version. ### Fixed - Fixed `MarkAddEvent`, `MarkChangeEvent` and `MarkRemoveEvent` position diff --git a/src/rpc/administration.rs b/src/rpc/administration.rs index f93220a..5b3fd68 100644 --- a/src/rpc/administration.rs +++ b/src/rpc/administration.rs @@ -14,14 +14,13 @@ impl AdministrationService for MissionRpc { let alive : bool = true; return Ok(Response::new(administration::v0::GetHealthResponse { alive, - })) + })); } async fn get_version( &self, _request: Request, - ) -> Result, Status> - { + ) -> Result, Status> { const VERSION: Option<&str> = option_env!("CARGO_PKG_VERSION"); let version = VERSION.unwrap_or("unknown").to_string(); return Ok(Response::new(administration::v0::GetVersionResponse {