[clippy] fixes

This commit is contained in:
2025-08-12 08:44:59 +02:00
parent 70548d2041
commit 98126a72da
3 changed files with 14 additions and 14 deletions

View File

@@ -100,11 +100,11 @@ impl RequestHandler {
}
}
fn handle_get_game_file_data(&self) -> Response {
fn handle_get_game_file_data() -> Response {
Response::InvalidRequest(Bytes::new(), "Not implemented".to_string())
}
fn handle_invalid(&self, data: Bytes, err_msg: String) -> Response {
fn handle_invalid(data: Bytes, err_msg: String) -> Response {
Response::InvalidRequest(data, err_msg)
}
@@ -113,8 +113,8 @@ impl RequestHandler {
Request::Ping => RequestHandler::handle_ping(),
Request::ListGames => self.handle_list_games().await,
Request::GetGame { id } => self.handle_get_game(id, games_folder).await,
Request::GetGameFileData(_) => self.handle_get_game_file_data(),
Request::Invalid(data, err_msg) => self.handle_invalid(data, err_msg),
Request::GetGameFileData(_) => RequestHandler::handle_get_game_file_data(),
Request::Invalid(data, err_msg) => RequestHandler::handle_invalid(data, err_msg),
}
}
}