Skip to content

Commit

Permalink
rust lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dutchie032 committed Sep 10, 2024
1 parent 6475945 commit 3918cd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions src/rpc/administration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<administration::v0::GetVersionRequest>,
) -> Result<Response<administration::v0::GetVersionResponse>, Status>
{
) -> Result<Response<administration::v0::GetVersionResponse>, 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 {
Expand Down

0 comments on commit 3918cd3

Please sign in to comment.