From a859bceeddc8e746bba630b3cc197532b68adbcb Mon Sep 17 00:00:00 2001 From: nokoe Date: Thu, 26 Feb 2026 05:15:54 +0100 Subject: use stable rust toolchain --- server/src/state.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/src/state.rs') diff --git a/server/src/state.rs b/server/src/state.rs index 1bddf33c..937d5a24 100644 --- a/server/src/state.rs +++ b/server/src/state.rs @@ -174,8 +174,9 @@ impl Server { timeout: None, player, .. - } if let Some(command) = text.strip_prefix("/") => { - match self.handle_command_parse(*player, command) { + } if text.strip_prefix("/").is_some() => { + // TODO: replace this by if let guard when stable + match self.handle_command_parse(*player, text.strip_prefix("/").unwrap()) { Ok(packets) => return Ok(packets), Err(e) => { return Ok(vec![PacketC::ServerMessage { -- cgit v1.3