diff --git a/Cargo.toml b/Cargo.toml index ea77168..012e5ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "runecast-protocol" -version = "0.19.0" +version = "0.19.1" edition = "2021" description = "Protocol definitions for RuneCast WebSocket communication" diff --git a/src/protocol/server_messages.rs b/src/protocol/server_messages.rs index 39dc9af..b2f19da 100644 --- a/src/protocol/server_messages.rs +++ b/src/protocol/server_messages.rs @@ -19,8 +19,8 @@ use super::types::{ AdminGameInfo, AdventureEventKind, CustomMeta, DebugBackendGameState, DebugHandlerGameState, DebugLobbyState, DebugPlayerInfo, DebugWebsocketContext, ErrorCode, GameChange, GameConfig, GamePlayerInfo, GameSnapshot, Grid, LobbyChange, LobbyGameInfo, LobbyPlayerInfo, LobbyType, - NewsItemPayload, NewsNotificationType, PlayerInfo, Position, RematchCountdownState, - RuneBoxStanding, ScoreInfo, SpectatorInfo, TimerVoteState, + NewsItemPayload, PlayerInfo, Position, RematchCountdownState, RuneBoxStanding, ScoreInfo, + SpectatorInfo, TimerVoteState, }; /// Messages sent from server to client. @@ -839,6 +839,9 @@ fn default_max_players() -> u8 { #[cfg(test)] mod tests { use super::*; + // Test-only: the lib build has no other use of this, so importing it at + // module scope makes it an unused import outside `cfg(test)`. + use crate::protocol::types::NewsNotificationType; use crate::protocol::{types, GameType}; #[test]